diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-16 16:13:33 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-16 16:13:33 +1200 |
commit | 40bd91fd8a798c33212150afdccf95e5f5ea52c5 (patch) | |
tree | cf243ae8b1af79511af5027abadbc79edd0a6140 /src/org/traccar | |
parent | 4a2bd50b6747eb00ddedd0d3e26f28cc43980b11 (diff) | |
download | trackermap-server-40bd91fd8a798c33212150afdccf95e5f5ea52c5.tar.gz trackermap-server-40bd91fd8a798c33212150afdccf95e5f5ea52c5.tar.bz2 trackermap-server-40bd91fd8a798c33212150afdccf95e5f5ea52c5.zip |
Fix an issue with custom command
Diffstat (limited to 'src/org/traccar')
-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 |