diff options
Diffstat (limited to 'src/org/traccar/protocol/SanavProtocol.java')
-rw-r--r-- | src/org/traccar/protocol/SanavProtocol.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/org/traccar/protocol/SanavProtocol.java b/src/org/traccar/protocol/SanavProtocol.java index 7ab2a9284..6799c57e6 100644 --- a/src/org/traccar/protocol/SanavProtocol.java +++ b/src/org/traccar/protocol/SanavProtocol.java @@ -21,16 +21,10 @@ import org.traccar.BaseProtocol; import org.traccar.PipelineBuilder; import org.traccar.TrackerServer; -import java.util.List; - public class SanavProtocol extends BaseProtocol { public SanavProtocol() { - } - - @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 StringDecoder()); @@ -38,7 +32,7 @@ public class SanavProtocol extends BaseProtocol { pipeline.addLast(new SanavProtocolDecoder(SanavProtocol.this)); } }); - serverList.add(new TrackerServer(true, getName()) { + addServer(new TrackerServer(true, getName()) { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { pipeline.addLast(new StringDecoder()); |