diff options
Diffstat (limited to 'src/org/traccar/protocol/AutoFonFrameDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/AutoFonFrameDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AutoFonFrameDecoder.java b/src/org/traccar/protocol/AutoFonFrameDecoder.java index 517f4b124..69f28133f 100644 --- a/src/org/traccar/protocol/AutoFonFrameDecoder.java +++ b/src/org/traccar/protocol/AutoFonFrameDecoder.java @@ -56,7 +56,7 @@ public class AutoFonFrameDecoder extends BaseFrameDecoder { // Check length and return buffer if (length != 0 && buf.readableBytes() >= length) { - return buf.readBytes(length); + return buf.readRetainedSlice(length); } return null; |