diff options
author | Evgeny S Maksimov <me@vragam.net> | 2019-02-01 00:56:35 +0300 |
---|---|---|
committer | Evgeny S Maksimov <me@vragam.net> | 2019-02-01 00:56:35 +0300 |
commit | a3c540a952b5136b1de2900c8947847f70b39446 (patch) | |
tree | 87ff1bc50441e37573907fcffb0f13a3f491bd40 /src/org/traccar/protocol/NavisProtocol.java | |
parent | 83e97b472e16d5dc16826aa4688e7430b8ecec29 (diff) | |
download | trackermap-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.java | 5 |
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)); } }); } |