aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/NavisProtocol.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/NavisProtocol.java')
-rw-r--r--src/org/traccar/protocol/NavisProtocol.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/NavisProtocol.java b/src/org/traccar/protocol/NavisProtocol.java
index 628b78fd4..db0eba8c1 100644
--- a/src/org/traccar/protocol/NavisProtocol.java
+++ b/src/org/traccar/protocol/NavisProtocol.java
@@ -25,9 +25,8 @@ public class NavisProtocol extends BaseProtocol {
addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- NavisProtocolDecoder protocolDecoder = new NavisProtocolDecoder(NavisProtocol.this);
- pipeline.addLast(new NavisFrameDecoder(protocolDecoder));
- pipeline.addLast(protocolDecoder);
+ pipeline.addLast(new NavisFrameDecoder());
+ pipeline.addLast(new NavisProtocolDecoder(NavisProtocol.this));
}
});
}