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/UproProtocolDecoder.java | |
parent | fdebac5f1244af67fc2398ba3e4adf96255a27d8 (diff) | |
download | traccar-server-43ea9461037772d7754c0bac4f2756f43f3ecab7.tar.gz traccar-server-43ea9461037772d7754c0bac4f2756f43f3ecab7.tar.bz2 traccar-server-43ea9461037772d7754c0bac4f2756f43f3ecab7.zip |
Update missed write calls
Diffstat (limited to 'src/org/traccar/protocol/UproProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/UproProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/UproProtocolDecoder.java b/src/org/traccar/protocol/UproProtocolDecoder.java index 9bbf6eb93..4e09d544a 100644 --- a/src/org/traccar/protocol/UproProtocolDecoder.java +++ b/src/org/traccar/protocol/UproProtocolDecoder.java @@ -20,6 +20,7 @@ import io.netty.buffer.ByteBufUtil; import io.netty.channel.Channel; import org.traccar.BaseProtocolDecoder; import org.traccar.DeviceSession; +import org.traccar.NetworkMessage; import org.traccar.helper.BitUtil; import org.traccar.helper.DateBuilder; import org.traccar.helper.Parser; @@ -123,7 +124,7 @@ public class UproProtocolDecoder extends BaseProtocolDecoder { String subtype = parser.next(); if (reply && channel != null) { - channel.write("*MG20Y" + type + subtype + "#"); + channel.writeAndFlush(new NetworkMessage("*MG20Y" + type + subtype + "#", remoteAddress)); } while (buf.isReadable()) { |