diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-16 12:15:43 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-16 12:15:44 +1300 |
commit | 421c13cf3aefeb0de6e057bf9d92ee4347d68f2f (patch) | |
tree | 0d1b2965ca51705d52784dcc55882e12bff24317 /src/org/traccar/BaseProtocol.java | |
parent | e151bd07a685d8b77ff6c24455ad0520e68843d4 (diff) | |
download | trackermap-server-421c13cf3aefeb0de6e057bf9d92ee4347d68f2f.tar.gz trackermap-server-421c13cf3aefeb0de6e057bf9d92ee4347d68f2f.tar.bz2 trackermap-server-421c13cf3aefeb0de6e057bf9d92ee4347d68f2f.zip |
Remove remaining handler names
Diffstat (limited to 'src/org/traccar/BaseProtocol.java')
-rw-r--r-- | src/org/traccar/BaseProtocol.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/BaseProtocol.java b/src/org/traccar/BaseProtocol.java index 4e5df329c..a78143167 100644 --- a/src/org/traccar/BaseProtocol.java +++ b/src/org/traccar/BaseProtocol.java @@ -16,6 +16,7 @@ package org.traccar; import io.netty.buffer.Unpooled; +import io.netty.handler.codec.string.StringEncoder; import org.traccar.database.ActiveDevice; import org.traccar.helper.DataConverter; import org.traccar.model.Command; @@ -75,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") != null) { + if (activeDevice.getChannel().pipeline().get(StringEncoder.class) != null) { activeDevice.write(data); } else { activeDevice.write(Unpooled.wrappedBuffer(DataConverter.parseHex(data))); |