diff options
Diffstat (limited to 'src/org/traccar/protocol/NvsFrameDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/NvsFrameDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/NvsFrameDecoder.java b/src/org/traccar/protocol/NvsFrameDecoder.java index 4fa1cab1c..e93a58cf6 100644 --- a/src/org/traccar/protocol/NvsFrameDecoder.java +++ b/src/org/traccar/protocol/NvsFrameDecoder.java @@ -38,7 +38,7 @@ public class NvsFrameDecoder extends BaseFrameDecoder { } if (buf.readableBytes() >= length) { - return buf.readBytes(length); + return buf.readRetainedSlice(length); } return null; |