diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-10 20:42:26 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-10 20:42:26 -0800 |
commit | d784393c1e13d9a5f0467d4d8a194d98a0d48d1f (patch) | |
tree | e33daa3426c5c7f49812bb87b190310cda759bb4 | |
parent | e47446459d7a732efdad46b47b7108eef45539a2 (diff) | |
download | trackermap-server-d784393c1e13d9a5f0467d4d8a194d98a0d48d1f.tar.gz trackermap-server-d784393c1e13d9a5f0467d4d8a194d98a0d48d1f.tar.bz2 trackermap-server-d784393c1e13d9a5f0467d4d8a194d98a0d48d1f.zip |
Handle new line
-rw-r--r-- | src/main/java/org/traccar/protocol/MobilogixProtocol.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/MobilogixProtocol.java b/src/main/java/org/traccar/protocol/MobilogixProtocol.java index b93275079..cf4b8bcdb 100644 --- a/src/main/java/org/traccar/protocol/MobilogixProtocol.java +++ b/src/main/java/org/traccar/protocol/MobilogixProtocol.java @@ -28,7 +28,7 @@ public class MobilogixProtocol extends BaseProtocol { addServer(new TrackerServer(false, getName()) { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { - pipeline.addLast(new CharacterDelimiterFrameDecoder(1024, ']')); + pipeline.addLast(new CharacterDelimiterFrameDecoder(1024, "]\r\n","]")); pipeline.addLast(new StringEncoder()); pipeline.addLast(new StringDecoder()); pipeline.addLast(new MobilogixProtocolDecoder(MobilogixProtocol.this)); |