aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-06-09 19:41:00 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-06-09 19:41:00 +1200
commit58a222ba3d546dc2366586f2c904e70680a394bd (patch)
tree3e9625205d9ad32ab9a8d7eab321d93f5c1d4861 /src/org/traccar
parent5346216b5f23d56477d1e5137370bb7b76325a88 (diff)
downloadtraccar-server-58a222ba3d546dc2366586f2c904e70680a394bd.tar.gz
traccar-server-58a222ba3d546dc2366586f2c904e70680a394bd.tar.bz2
traccar-server-58a222ba3d546dc2366586f2c904e70680a394bd.zip
Fix Wondex ref counting issue
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/WondexFrameDecoder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/WondexFrameDecoder.java b/src/org/traccar/protocol/WondexFrameDecoder.java
index c223c87ff..39d83d761 100644
--- a/src/org/traccar/protocol/WondexFrameDecoder.java
+++ b/src/org/traccar/protocol/WondexFrameDecoder.java
@@ -40,6 +40,7 @@ public class WondexFrameDecoder extends BaseFrameDecoder {
// Send response
ByteBuf frame = buf.readRetainedSlice(KEEP_ALIVE_LENGTH);
if (channel != null) {
+ frame.retain();
channel.writeAndFlush(new NetworkMessage(frame, channel.remoteAddress()));
}
return frame;