diff options
Diffstat (limited to 'src/main/java/org/traccar/protocol/TekFrameDecoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/TekFrameDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TekFrameDecoder.java b/src/main/java/org/traccar/protocol/TekFrameDecoder.java index 44d2c590e..c56e1f8f2 100644 --- a/src/main/java/org/traccar/protocol/TekFrameDecoder.java +++ b/src/main/java/org/traccar/protocol/TekFrameDecoder.java @@ -33,7 +33,7 @@ public class TekFrameDecoder extends BaseFrameDecoder { int length = 17 + buf.getUnsignedByte(16) + (BitUtil.from(buf.getUnsignedByte(15), 6) << 6); if (buf.readableBytes() >= length) { - return buf.readBytes(length); + return buf.readRetainedSlice(length); } return null; |