diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-16 00:57:54 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-16 00:57:54 +1200 |
commit | 1c029a3bc2437230409c8daf39f03ec52014d579 (patch) | |
tree | 35929b9117cb2b31c96eca53e5670504daed9322 /src/org/traccar/protocol/AtrackFrameDecoder.java | |
parent | e6cea680c6d4ae362e120e6537e84428507b4781 (diff) | |
download | trackermap-server-1c029a3bc2437230409c8daf39f03ec52014d579.tar.gz trackermap-server-1c029a3bc2437230409c8daf39f03ec52014d579.tar.bz2 trackermap-server-1c029a3bc2437230409c8daf39f03ec52014d579.zip |
Minor Atrack frame decoder update
Diffstat (limited to 'src/org/traccar/protocol/AtrackFrameDecoder.java')
-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); } } |