aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/DolphinProtocol.java
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 /src/main/java/org/traccar/protocol/DolphinProtocol.java
parent430607c1b34cd2b07afa8f49b44fb72f99fc663f (diff)
downloadtrackermap-server-889fabc6ca7f7bc8d744af1f9184d43b76744478.tar.gz
trackermap-server-889fabc6ca7f7bc8d744af1f9184d43b76744478.tar.bz2
trackermap-server-889fabc6ca7f7bc8d744af1f9184d43b76744478.zip
Fix frame decoder
Diffstat (limited to 'src/main/java/org/traccar/protocol/DolphinProtocol.java')
-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));
}
});