aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/BlueProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-01-22 08:41:12 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-01-22 08:41:12 -0800
commitcdbb912a1552d2e8eb6590dbffb6799ee187b50b (patch)
tree87ae9a6af477c13c279df8607c70e3ac78df2257 /src/main/java/org/traccar/protocol/BlueProtocol.java
parent720916a476f25f12156cdd7e07cbee4f48d1b1ad (diff)
downloadtrackermap-server-cdbb912a1552d2e8eb6590dbffb6799ee187b50b.tar.gz
trackermap-server-cdbb912a1552d2e8eb6590dbffb6799ee187b50b.tar.bz2
trackermap-server-cdbb912a1552d2e8eb6590dbffb6799ee187b50b.zip
Fix frame decoder
Diffstat (limited to 'src/main/java/org/traccar/protocol/BlueProtocol.java')
-rw-r--r--src/main/java/org/traccar/protocol/BlueProtocol.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/BlueProtocol.java b/src/main/java/org/traccar/protocol/BlueProtocol.java
index 79f0714ec..d5dc5c421 100644
--- a/src/main/java/org/traccar/protocol/BlueProtocol.java
+++ b/src/main/java/org/traccar/protocol/BlueProtocol.java
@@ -26,7 +26,7 @@ public class BlueProtocol extends BaseProtocol {
addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast(new LengthFieldBasedFrameDecoder(1024, 1, 2, 3, 0));
+ pipeline.addLast(new LengthFieldBasedFrameDecoder(1024, 1, 2, -2, 0));
pipeline.addLast(new BlueProtocolDecoder(BlueProtocol.this));
}
});