aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Pt502Protocol.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/Pt502Protocol.java')
-rw-r--r--src/org/traccar/protocol/Pt502Protocol.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/org/traccar/protocol/Pt502Protocol.java b/src/org/traccar/protocol/Pt502Protocol.java
index b3f0fc3a0..5afb9451d 100644
--- a/src/org/traccar/protocol/Pt502Protocol.java
+++ b/src/org/traccar/protocol/Pt502Protocol.java
@@ -21,8 +21,6 @@ import org.traccar.PipelineBuilder;
import org.traccar.TrackerServer;
import org.traccar.model.Command;
-import java.util.List;
-
public class Pt502Protocol extends BaseProtocol {
public Pt502Protocol() {
@@ -32,11 +30,7 @@ public class Pt502Protocol extends BaseProtocol {
Command.TYPE_ALARM_SPEED,
Command.TYPE_OUTPUT_CONTROL,
Command.TYPE_REQUEST_PHOTO);
- }
-
- @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 Pt502FrameDecoder());