diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-10 10:55:06 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-10 10:55:06 +1200 |
commit | 1dc1e06cfd4b7b23775984a254723b2d06b4f1dd (patch) | |
tree | 6dd89b120a7400ff3f08b2cb213cadc27112d0e7 /src/org/traccar/protocol/WatchFrameDecoder.java | |
parent | 58a222ba3d546dc2366586f2c904e70680a394bd (diff) | |
download | traccar-server-1dc1e06cfd4b7b23775984a254723b2d06b4f1dd.tar.gz traccar-server-1dc1e06cfd4b7b23775984a254723b2d06b4f1dd.tar.bz2 traccar-server-1dc1e06cfd4b7b23775984a254723b2d06b4f1dd.zip |
Handle buffers reference count
Diffstat (limited to 'src/org/traccar/protocol/WatchFrameDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/WatchFrameDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/WatchFrameDecoder.java b/src/org/traccar/protocol/WatchFrameDecoder.java index 032063408..1e2f0cea3 100644 --- a/src/org/traccar/protocol/WatchFrameDecoder.java +++ b/src/org/traccar/protocol/WatchFrameDecoder.java @@ -57,7 +57,7 @@ public class WatchFrameDecoder extends BaseFrameDecoder { int length = Integer.parseInt( buf.toString(lengthIndex, payloadIndex - lengthIndex, StandardCharsets.US_ASCII), 16); if (buf.readableBytes() >= payloadIndex + 1 + length + 1) { - ByteBuf frame = Unpooled.buffer(); // TODO ref count + ByteBuf frame = Unpooled.buffer(); int endIndex = buf.readerIndex() + payloadIndex + 1 + length + 1; while (buf.readerIndex() < endIndex) { byte b = buf.readByte(); |