diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-24 12:20:26 +0400 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-24 12:20:26 +0400 |
commit | 3a008c877056234e525587dbb339e5c950748b9a (patch) | |
tree | a6ab27d00a02955d1df4d355a8e66503de5098e6 /src | |
parent | d12056916958e1ccab3b94db0a5a57aa096a8061 (diff) | |
download | trackermap-server-3a008c877056234e525587dbb339e5c950748b9a.tar.gz trackermap-server-3a008c877056234e525587dbb339e5c950748b9a.tar.bz2 trackermap-server-3a008c877056234e525587dbb339e5c950748b9a.zip |
Fix frame decoder issue
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/RetranslatorFrameDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/RetranslatorFrameDecoder.java b/src/org/traccar/protocol/RetranslatorFrameDecoder.java index 1ad07b8da..4edd09418 100644 --- a/src/org/traccar/protocol/RetranslatorFrameDecoder.java +++ b/src/org/traccar/protocol/RetranslatorFrameDecoder.java @@ -28,7 +28,7 @@ public class RetranslatorFrameDecoder extends BaseFrameDecoder { int length = 4 + buf.getIntLE(buf.readerIndex()); if (buf.readableBytes() >= length) { - return buf.readBytes(length); + return buf.readRetainedSlice(length); } else { return null; } |