diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-05-24 22:48:07 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-05-24 22:48:07 -0700 |
commit | 94a958af9679265b7ee555e11a547ead1557b513 (patch) | |
tree | 9777bec4031cfaf42ed88d3b3d01d910de278614 | |
parent | 76e4b63061674a58d5692d4318668494d1ed8b25 (diff) | |
download | trackermap-server-94a958af9679265b7ee555e11a547ead1557b513.tar.gz trackermap-server-94a958af9679265b7ee555e11a547ead1557b513.tar.bz2 trackermap-server-94a958af9679265b7ee555e11a547ead1557b513.zip |
Fix response
-rw-r--r-- | src/main/java/org/traccar/protocol/TaipPrefixEncoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TaipPrefixEncoder.java b/src/main/java/org/traccar/protocol/TaipPrefixEncoder.java index b690c176d..3d906ab60 100644 --- a/src/main/java/org/traccar/protocol/TaipPrefixEncoder.java +++ b/src/main/java/org/traccar/protocol/TaipPrefixEncoder.java @@ -38,7 +38,7 @@ public class TaipPrefixEncoder extends MessageToMessageEncoder<ByteBuf> { @Override protected void encode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) throws Exception { if (Context.getConfig().getBoolean(Keys.PROTOCOL_PREFIX.withPrefix(protocol.getName()))) { - Unpooled.wrappedBuffer(Unpooled.wrappedBuffer(new byte[] {0x20, 0x20, 0x06, 0x00}), msg); + out.add(Unpooled.wrappedBuffer(Unpooled.wrappedBuffer(new byte[] {0x20, 0x20, 0x06, 0x00}), msg)); } else { out.add(msg); } |