aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/GranitProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/GranitProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/GranitProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/GranitProtocolDecoder.java b/src/org/traccar/protocol/GranitProtocolDecoder.java
index d9e7b62d8..c3eff7d34 100644
--- a/src/org/traccar/protocol/GranitProtocolDecoder.java
+++ b/src/org/traccar/protocol/GranitProtocolDecoder.java
@@ -64,7 +64,7 @@ public class GranitProtocolDecoder extends BaseProtocolDecoder {
response.writeInt((int) time);
response.writeShortLE(deviceId);
appendChecksum(response, 16);
- channel.write(new NetworkMessage(response, channel.remoteAddress()));
+ channel.writeAndFlush(new NetworkMessage(response, channel.remoteAddress()));
}
private static void sendResponseArchive(Channel channel, int deviceId, int packNum) {
@@ -74,7 +74,7 @@ public class GranitProtocolDecoder extends BaseProtocolDecoder {
response.writeShortLE(packNum);
response.writeShortLE(deviceId);
appendChecksum(response, 14);
- channel.write(new NetworkMessage(response, channel.remoteAddress()));
+ channel.writeAndFlush(new NetworkMessage(response, channel.remoteAddress()));
}
private void decodeStructure(ByteBuf buf, Position position) {