diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-01-22 08:41:12 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-01-22 08:41:12 -0800 |
commit | cdbb912a1552d2e8eb6590dbffb6799ee187b50b (patch) | |
tree | 87ae9a6af477c13c279df8607c70e3ac78df2257 /src | |
parent | 720916a476f25f12156cdd7e07cbee4f48d1b1ad (diff) | |
download | traccar-server-cdbb912a1552d2e8eb6590dbffb6799ee187b50b.tar.gz traccar-server-cdbb912a1552d2e8eb6590dbffb6799ee187b50b.tar.bz2 traccar-server-cdbb912a1552d2e8eb6590dbffb6799ee187b50b.zip |
Fix frame decoder
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/traccar/protocol/BlueProtocol.java | 2 |
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)); } }); |