aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/AutoTrackProtocol.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/AutoTrackProtocol.java')
-rw-r--r--src/org/traccar/protocol/AutoTrackProtocol.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/org/traccar/protocol/AutoTrackProtocol.java b/src/org/traccar/protocol/AutoTrackProtocol.java
index eea95fb0f..6aa7558bf 100644
--- a/src/org/traccar/protocol/AutoTrackProtocol.java
+++ b/src/org/traccar/protocol/AutoTrackProtocol.java
@@ -21,16 +21,10 @@ import org.traccar.PipelineBuilder;
import org.traccar.TrackerServer;
import java.nio.ByteOrder;
-import java.util.List;
-
public class AutoTrackProtocol extends BaseProtocol {
public AutoTrackProtocol() {
- }
-
- @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 LengthFieldBasedFrameDecoder(ByteOrder.LITTLE_ENDIAN, 1024, 5, 2, 2, 0, true));