aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-01-18 21:56:08 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-01-18 21:56:08 -0800
commit889fabc6ca7f7bc8d744af1f9184d43b76744478 (patch)
tree8c02a905217a509e3b8259ea981e5d711b6ef2a6
parent430607c1b34cd2b07afa8f49b44fb72f99fc663f (diff)
downloadtraccar-server-889fabc6ca7f7bc8d744af1f9184d43b76744478.tar.gz
traccar-server-889fabc6ca7f7bc8d744af1f9184d43b76744478.tar.bz2
traccar-server-889fabc6ca7f7bc8d744af1f9184d43b76744478.zip
Fix frame decoder
-rw-r--r--src/main/java/org/traccar/protocol/DolphinProtocol.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/DolphinProtocol.java b/src/main/java/org/traccar/protocol/DolphinProtocol.java
index 83c127940..07c827e18 100644
--- a/src/main/java/org/traccar/protocol/DolphinProtocol.java
+++ b/src/main/java/org/traccar/protocol/DolphinProtocol.java
@@ -28,7 +28,7 @@ public class DolphinProtocol extends BaseProtocol {
addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast(new LengthFieldBasedFrameDecoder(ByteOrder.LITTLE_ENDIAN, 4096, 20, 4, 0, 0, true));
+ pipeline.addLast(new LengthFieldBasedFrameDecoder(ByteOrder.LITTLE_ENDIAN, 4096, 20, 4, 4, 0, true));
pipeline.addLast(new DolphinProtocolDecoder(DolphinProtocol.this));
}
});