aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/WatchProtocol.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/WatchProtocol.java')
-rw-r--r--src/org/traccar/protocol/WatchProtocol.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/org/traccar/protocol/WatchProtocol.java b/src/org/traccar/protocol/WatchProtocol.java
index 1c4b0fb8e..926d2826d 100644
--- a/src/org/traccar/protocol/WatchProtocol.java
+++ b/src/org/traccar/protocol/WatchProtocol.java
@@ -22,8 +22,6 @@ import org.traccar.model.Command;
import io.netty.handler.codec.string.StringEncoder;
-import java.util.List;
-
public class WatchProtocol extends BaseProtocol {
public WatchProtocol() {
@@ -42,11 +40,7 @@ public class WatchProtocol extends BaseProtocol {
Command.TYPE_VOICE_MESSAGE,
Command.TYPE_SET_TIMEZONE,
Command.TYPE_SET_INDICATOR);
- }
-
- @Override
- public void initTrackerServers(List<TrackerServer> serverList) {
- serverList.add(new TrackerServer(false, getName()) {
+ addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
pipeline.addLast(new WatchFrameDecoder());