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/RuptelaProtocolDecoder.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/RuptelaProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/RuptelaProtocolDecoder.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/RuptelaProtocolDecoder.java b/src/org/traccar/protocol/RuptelaProtocolDecoder.java index df3c89f8f..2df0b6e25 100644 --- a/src/org/traccar/protocol/RuptelaProtocolDecoder.java +++ b/src/org/traccar/protocol/RuptelaProtocolDecoder.java @@ -20,6 +20,7 @@ import io.netty.buffer.Unpooled; import io.netty.channel.Channel; import org.traccar.BaseProtocolDecoder; import org.traccar.DeviceSession; +import org.traccar.NetworkMessage; import org.traccar.helper.DataConverter; import org.traccar.helper.UnitsConverter; import org.traccar.model.Position; @@ -196,7 +197,8 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder { } if (channel != null) { - channel.write(Unpooled.wrappedBuffer(DataConverter.parseHex("0002640113bc"))); + channel.writeAndFlush(new NetworkMessage( + Unpooled.wrappedBuffer(DataConverter.parseHex("0002640113bc")), remoteAddress)); } return positions; @@ -229,7 +231,8 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder { } if (channel != null) { - channel.write(Unpooled.wrappedBuffer(DataConverter.parseHex("00026d01c4a4"))); + channel.writeAndFlush(new NetworkMessage( + Unpooled.wrappedBuffer(DataConverter.parseHex("00026d01c4a4")), remoteAddress)); } return positions; |