aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-08-01 16:00:45 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-08-01 16:00:45 +1200
commit74f3c9f2877da3dcfbc28c103d0e2c8904991cff (patch)
treeac473b2763ae680892aec70c3fc8de9eb81a17b1 /src/org/traccar/protocol
parent36d06c790494d35951a416643b9e8aa8853f573e (diff)
downloadtrackermap-server-74f3c9f2877da3dcfbc28c103d0e2c8904991cff.tar.gz
trackermap-server-74f3c9f2877da3dcfbc28c103d0e2c8904991cff.tar.bz2
trackermap-server-74f3c9f2877da3dcfbc28c103d0e2c8904991cff.zip
Fix Atrack reference count issue
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/AtrackProtocolDecoder.java2
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()) == '$') {