diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-09 09:46:34 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-09 09:46:34 +1200 |
commit | 43ea9461037772d7754c0bac4f2756f43f3ecab7 (patch) | |
tree | a351116876047976ba110799746a10d0ead76825 /src/org/traccar/protocol/PricolProtocolDecoder.java | |
parent | fdebac5f1244af67fc2398ba3e4adf96255a27d8 (diff) | |
download | trackermap-server-43ea9461037772d7754c0bac4f2756f43f3ecab7.tar.gz trackermap-server-43ea9461037772d7754c0bac4f2756f43f3ecab7.tar.bz2 trackermap-server-43ea9461037772d7754c0bac4f2756f43f3ecab7.zip |
Update missed write calls
Diffstat (limited to 'src/org/traccar/protocol/PricolProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/PricolProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/PricolProtocolDecoder.java b/src/org/traccar/protocol/PricolProtocolDecoder.java index 901639501..e0ab300be 100644 --- a/src/org/traccar/protocol/PricolProtocolDecoder.java +++ b/src/org/traccar/protocol/PricolProtocolDecoder.java @@ -87,7 +87,8 @@ public class PricolProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_RPM, buf.readUnsignedShort()); if (channel != null) { - channel.write(new NetworkMessage(Unpooled.copiedBuffer("ACK", StandardCharsets.US_ASCII), remoteAddress)); + channel.writeAndFlush(new NetworkMessage( + Unpooled.copiedBuffer("ACK", StandardCharsets.US_ASCII), remoteAddress)); } return position; |