aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-16 16:13:33 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-16 16:13:33 +1200
commit40bd91fd8a798c33212150afdccf95e5f5ea52c5 (patch)
treecf243ae8b1af79511af5027abadbc79edd0a6140 /src
parent4a2bd50b6747eb00ddedd0d3e26f28cc43980b11 (diff)
downloadtrackermap-server-40bd91fd8a798c33212150afdccf95e5f5ea52c5.tar.gz
trackermap-server-40bd91fd8a798c33212150afdccf95e5f5ea52c5.tar.bz2
trackermap-server-40bd91fd8a798c33212150afdccf95e5f5ea52c5.zip
Fix an issue with custom command
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/BaseProtocol.java5
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