From 58a222ba3d546dc2366586f2c904e70680a394bd Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 9 Jun 2018 19:41:00 +1200 Subject: Fix Wondex ref counting issue --- src/org/traccar/protocol/WondexFrameDecoder.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/org/traccar') 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; -- cgit v1.2.3