diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2022-01-19 23:14:08 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2022-01-19 23:14:08 -0800 |
commit | edd6f8c70370b80c9990710cdd2d1a0ca4509b7c (patch) | |
tree | fe79df4bd39c0f4850b9091ad15f6bf1aa130d69 /src/main/java/org/traccar | |
parent | 5094cb914e0957b57f0986cdb004431ce45a85ad (diff) | |
download | trackermap-server-edd6f8c70370b80c9990710cdd2d1a0ca4509b7c.tar.gz trackermap-server-edd6f8c70370b80c9990710cdd2d1a0ca4509b7c.tar.bz2 trackermap-server-edd6f8c70370b80c9990710cdd2d1a0ca4509b7c.zip |
Handle zero byte
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r-- | src/main/java/org/traccar/protocol/MiniFinderProtocol.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/MiniFinderProtocol.java b/src/main/java/org/traccar/protocol/MiniFinderProtocol.java index 82534ecd8..0cc9598ed 100644 --- a/src/main/java/org/traccar/protocol/MiniFinderProtocol.java +++ b/src/main/java/org/traccar/protocol/MiniFinderProtocol.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 - 2019 Anton Tananaev (anton@traccar.org) + * Copyright 2015 - 2022 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,7 +41,7 @@ public class MiniFinderProtocol extends BaseProtocol { addServer(new TrackerServer(false, getName()) { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { - pipeline.addLast(new CharacterDelimiterFrameDecoder(1024, ';')); + pipeline.addLast(new CharacterDelimiterFrameDecoder(1024, ";\0", ";")); pipeline.addLast(new StringEncoder()); pipeline.addLast(new StringDecoder()); pipeline.addLast(new MiniFinderProtocolEncoder(MiniFinderProtocol.this)); |