aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/NavisProtocol.java
diff options
context:
space:
mode:
authorEvgeny S Maksimov <admin@vragam.net>2019-01-18 21:48:41 +0300
committerEvgeny S Maksimov <admin@vragam.net>2019-01-18 21:48:41 +0300
commitcbe838ad644ce5e787f080e292bc332e50efa4a0 (patch)
tree0c09249dc18b16fe2803b4d4a42670141f13e4ef /src/org/traccar/protocol/NavisProtocol.java
parentfc707a69c3c95223ecb8e263d7de32a72ec84af3 (diff)
downloadtrackermap-server-cbe838ad644ce5e787f080e292bc332e50efa4a0.tar.gz
trackermap-server-cbe838ad644ce5e787f080e292bc332e50efa4a0.tar.bz2
trackermap-server-cbe838ad644ce5e787f080e292bc332e50efa4a0.zip
Added strict implementation for frame decoder
Diffstat (limited to 'src/org/traccar/protocol/NavisProtocol.java')
-rw-r--r--src/org/traccar/protocol/NavisProtocol.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/NavisProtocol.java b/src/org/traccar/protocol/NavisProtocol.java
index 4250ba4dc..628b78fd4 100644
--- a/src/org/traccar/protocol/NavisProtocol.java
+++ b/src/org/traccar/protocol/NavisProtocol.java
@@ -25,10 +25,10 @@ public class NavisProtocol extends BaseProtocol {
addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast(new NavisFrameDecoder());
- pipeline.addLast(new NavisProtocolDecoder(NavisProtocol.this));
+ NavisProtocolDecoder protocolDecoder = new NavisProtocolDecoder(NavisProtocol.this);
+ pipeline.addLast(new NavisFrameDecoder(protocolDecoder));
+ pipeline.addLast(protocolDecoder);
}
});
}
-
}