aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/NavisProtocol.java
diff options
context:
space:
mode:
authorEvgeny S Maksimov <me@vragam.net>2019-02-01 00:56:35 +0300
committerEvgeny S Maksimov <me@vragam.net>2019-02-01 00:56:35 +0300
commita3c540a952b5136b1de2900c8947847f70b39446 (patch)
tree87ff1bc50441e37573907fcffb0f13a3f491bd40 /src/org/traccar/protocol/NavisProtocol.java
parent83e97b472e16d5dc16826aa4688e7430b8ecec29 (diff)
downloadtrackermap-server-a3c540a952b5136b1de2900c8947847f70b39446.tar.gz
trackermap-server-a3c540a952b5136b1de2900c8947847f70b39446.tar.bz2
trackermap-server-a3c540a952b5136b1de2900c8947847f70b39446.zip
Frame decoder refactoring
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));
}
});
}