diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/AtrackFrameDecoder.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/AtrackFrameDecoder.java b/src/org/traccar/protocol/AtrackFrameDecoder.java index 3c7d287fe..ce4a9a65f 100644 --- a/src/org/traccar/protocol/AtrackFrameDecoder.java +++ b/src/org/traccar/protocol/AtrackFrameDecoder.java @@ -50,9 +50,7 @@ public class AtrackFrameDecoder extends FrameDecoder { int endIndex = buf.indexOf(buf.readerIndex(), buf.writerIndex(), new StringFinder("\r\n")); if (endIndex > 0) { - ChannelBuffer frame = buf.readBytes(endIndex - buf.readerIndex()); - buf.skipBytes(2); - return frame; + return buf.readBytes(endIndex - buf.readerIndex() + 2); } } |