diff options
-rw-r--r-- | src/org/traccar/BaseProtocol.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/BaseProtocol.java b/src/org/traccar/BaseProtocol.java index 4a3e63db4..eb09022f5 100644 --- a/src/org/traccar/BaseProtocol.java +++ b/src/org/traccar/BaseProtocol.java @@ -33,7 +33,6 @@ public abstract class BaseProtocol implements Protocol { public BaseProtocol(String name) { this.name = name; - supportedCommands.add(Command.TYPE_CUSTOM); } @Override @@ -47,7 +46,9 @@ public abstract class BaseProtocol implements Protocol { @Override public Collection<String> getSupportedCommands() { - return supportedCommands; + Set<String> commands = new HashSet<>(supportedCommands); + commands.add(Command.TYPE_CUSTOM); + return commands; } @Override |