diff options
Diffstat (limited to 'src/org/traccar/protocol/Tk103FrameDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/Tk103FrameDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Tk103FrameDecoder.java b/src/org/traccar/protocol/Tk103FrameDecoder.java index 3ad1cd2c9..b61a42563 100644 --- a/src/org/traccar/protocol/Tk103FrameDecoder.java +++ b/src/org/traccar/protocol/Tk103FrameDecoder.java @@ -69,7 +69,7 @@ public class Tk103FrameDecoder extends BaseFrameDecoder { buf.readerIndex(frameStartIndex); - return buf.readBytes(frameEndIndex + 1 - frameStartIndex); + return buf.readRetainedSlice(frameEndIndex + 1 - frameStartIndex); } } |