From 3a008c877056234e525587dbb339e5c950748b9a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 24 Oct 2018 12:20:26 +0400 Subject: Fix frame decoder issue --- src/org/traccar/protocol/RetranslatorFrameDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3