diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-08-01 16:00:45 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-08-01 16:00:45 +1200 |
commit | 74f3c9f2877da3dcfbc28c103d0e2c8904991cff (patch) | |
tree | ac473b2763ae680892aec70c3fc8de9eb81a17b1 /src | |
parent | 36d06c790494d35951a416643b9e8aa8853f573e (diff) | |
download | trackermap-server-74f3c9f2877da3dcfbc28c103d0e2c8904991cff.tar.gz trackermap-server-74f3c9f2877da3dcfbc28c103d0e2c8904991cff.tar.bz2 trackermap-server-74f3c9f2877da3dcfbc28c103d0e2c8904991cff.zip |
Fix Atrack reference count issue
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/AtrackProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AtrackProtocolDecoder.java b/src/org/traccar/protocol/AtrackProtocolDecoder.java index 7755bfa25..f55040e79 100644 --- a/src/org/traccar/protocol/AtrackProtocolDecoder.java +++ b/src/org/traccar/protocol/AtrackProtocolDecoder.java @@ -419,7 +419,7 @@ public class AtrackProtocolDecoder extends BaseProtocolDecoder { if (buf.getUnsignedShort(buf.readerIndex()) == 0xfe02) { if (channel != null) { - channel.writeAndFlush(new NetworkMessage(buf, remoteAddress)); // keep-alive message + channel.writeAndFlush(new NetworkMessage(buf.retain(), remoteAddress)); // keep-alive message } return null; } else if (buf.getByte(buf.readerIndex()) == '$') { |