aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-05-24 22:48:07 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-05-24 22:48:07 -0700
commit94a958af9679265b7ee555e11a547ead1557b513 (patch)
tree9777bec4031cfaf42ed88d3b3d01d910de278614 /src/main/java/org/traccar
parent76e4b63061674a58d5692d4318668494d1ed8b25 (diff)
downloadtrackermap-server-94a958af9679265b7ee555e11a547ead1557b513.tar.gz
trackermap-server-94a958af9679265b7ee555e11a547ead1557b513.tar.bz2
trackermap-server-94a958af9679265b7ee555e11a547ead1557b513.zip
Fix response
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/TaipPrefixEncoder.java2
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);
}