diff options
Diffstat (limited to 'src/org/traccar/protocol/CastelProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/CastelProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/CastelProtocolDecoder.java b/src/org/traccar/protocol/CastelProtocolDecoder.java index 296309989..3c3ad6117 100644 --- a/src/org/traccar/protocol/CastelProtocolDecoder.java +++ b/src/org/traccar/protocol/CastelProtocolDecoder.java @@ -209,7 +209,7 @@ public class CastelProtocolDecoder extends BaseProtocolDecoder { response.writeShortLE( Checksum.crc16(Checksum.CRC16_X25, response.nioBuffer(0, response.writerIndex()))); response.writeByte(0x0D); response.writeByte(0x0A); - channel.write(new NetworkMessage(response, remoteAddress)); + channel.writeAndFlush(new NetworkMessage(response, remoteAddress)); } } @@ -231,7 +231,7 @@ public class CastelProtocolDecoder extends BaseProtocolDecoder { response.writeShortLE( Checksum.crc16(Checksum.CRC16_X25, response.nioBuffer(0, response.writerIndex()))); response.writeByte(0x0D); response.writeByte(0x0A); - channel.write(new NetworkMessage(response, remoteAddress)); + channel.writeAndFlush(new NetworkMessage(response, remoteAddress)); } } |