From 74f3c9f2877da3dcfbc28c103d0e2c8904991cff Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 1 Aug 2018 16:00:45 +1200 Subject: Fix Atrack reference count issue --- src/org/traccar/protocol/AtrackProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()) == '$') { -- cgit v1.2.3