aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-12-04 08:47:38 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-12-04 08:47:38 -0800
commit2361de692cb75944a661f8a57e7b8d9e281ef138 (patch)
tree2c180660051d0536b4dbfefea21528b16879ed60 /src
parenta379356a52cddbd942cee2dfdf87614adba4aa63 (diff)
downloadtrackermap-server-2361de692cb75944a661f8a57e7b8d9e281ef138.tar.gz
trackermap-server-2361de692cb75944a661f8a57e7b8d9e281ef138.tar.bz2
trackermap-server-2361de692cb75944a661f8a57e7b8d9e281ef138.zip
Use correct decoder classes
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/OmnicommProtocol.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/OmnicommProtocol.java b/src/main/java/org/traccar/protocol/OmnicommProtocol.java
index bf408243b..96660cb59 100644
--- a/src/main/java/org/traccar/protocol/OmnicommProtocol.java
+++ b/src/main/java/org/traccar/protocol/OmnicommProtocol.java
@@ -15,7 +15,6 @@
*/
package org.traccar.protocol;
-import io.netty.handler.codec.LengthFieldBasedFrameDecoder;
import org.traccar.BaseProtocol;
import org.traccar.PipelineBuilder;
import org.traccar.TrackerServer;
@@ -26,8 +25,8 @@ public class OmnicommProtocol extends BaseProtocol {
addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast(new LengthFieldBasedFrameDecoder(256, 2, 1, 2, 0));
- pipeline.addLast(new Gt02ProtocolDecoder(OmnicommProtocol.this));
+ pipeline.addLast(new OmnicommFrameDecoder());
+ pipeline.addLast(new OmnicommProtocolDecoder(OmnicommProtocol.this));
}
});
}