diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-05 20:35:56 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-05 20:35:56 +1200 |
commit | c34ab02bb5943ecac8a143127967c29bda45647c (patch) | |
tree | db684ab347eee873849040e2024cdbe260e97b0d /src/org/traccar/BaseProtocol.java | |
parent | f0d1a5df7aecf1237609200d3ecb7cdd3d0abcab (diff) | |
download | trackermap-server-c34ab02bb5943ecac8a143127967c29bda45647c.tar.gz trackermap-server-c34ab02bb5943ecac8a143127967c29bda45647c.tar.bz2 trackermap-server-c34ab02bb5943ecac8a143127967c29bda45647c.zip |
Use wrappers for network message handling
Diffstat (limited to 'src/org/traccar/BaseProtocol.java')
-rw-r--r-- | src/org/traccar/BaseProtocol.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/BaseProtocol.java b/src/org/traccar/BaseProtocol.java index 8dbec362f..c33270fc6 100644 --- a/src/org/traccar/BaseProtocol.java +++ b/src/org/traccar/BaseProtocol.java @@ -76,7 +76,7 @@ public abstract class BaseProtocol implements Protocol { activeDevice.write(command); } else if (command.getType().equals(Command.TYPE_CUSTOM)) { String data = command.getString(Command.KEY_DATA); - if (activeDevice.getChannel().pipeline().get(StringEncoder.class) != null) { + if (activeDevice.getChannel().pipeline().get(StringEncoder.class) != null) { // TODO change activeDevice.write(data); } else { activeDevice.write(Unpooled.wrappedBuffer(DataConverter.parseHex(data))); |