diff options
Diffstat (limited to 'src/org/traccar/protocol/NavisProtocol.java')
-rw-r--r-- | src/org/traccar/protocol/NavisProtocol.java | 6 |
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); } }); } - } |