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/org/traccar/protocol | |
parent | d12056916958e1ccab3b94db0a5a57aa096a8061 (diff) | |
download | traccar-server-3a008c877056234e525587dbb339e5c950748b9a.tar.gz traccar-server-3a008c877056234e525587dbb339e5c950748b9a.tar.bz2 traccar-server-3a008c877056234e525587dbb339e5c950748b9a.zip |
Fix frame decoder issue
Diffstat (limited to 'src/org/traccar/protocol')
-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; } |