diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-08-03 22:48:01 +0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-08-03 22:48:01 +0800 |
commit | c2851143d996e8ae1741adb1b6f20cc7e447f327 (patch) | |
tree | f9d8efc338cb0c707d23ad51b1a2a2e5424bc6cd /src/org/traccar/protocol | |
parent | 00f496895e056ecec5c804565df07d62fafc62a2 (diff) | |
download | trackermap-server-c2851143d996e8ae1741adb1b6f20cc7e447f327.tar.gz trackermap-server-c2851143d996e8ae1741adb1b6f20cc7e447f327.tar.bz2 trackermap-server-c2851143d996e8ae1741adb1b6f20cc7e447f327.zip |
Fix Tzone frame decoder (fix #2183)
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/TzoneProtocol.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TzoneProtocol.java b/src/org/traccar/protocol/TzoneProtocol.java index 2d98e3f79..fcf673a57 100644 --- a/src/org/traccar/protocol/TzoneProtocol.java +++ b/src/org/traccar/protocol/TzoneProtocol.java @@ -34,7 +34,7 @@ public class TzoneProtocol extends BaseProtocol { serverList.add(new TrackerServer(new ServerBootstrap(), this.getName()) { @Override protected void addSpecificHandlers(ChannelPipeline pipeline) { - pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(256, 2, 2)); + pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(256, 2, 2, 2, 0)); pipeline.addLast("objectDecoder", new TzoneProtocolDecoder(TzoneProtocol.this)); } }); |