aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-10 20:42:26 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-12-10 20:42:26 -0800
commitd784393c1e13d9a5f0467d4d8a194d98a0d48d1f (patch)
treee33daa3426c5c7f49812bb87b190310cda759bb4
parente47446459d7a732efdad46b47b7108eef45539a2 (diff)
downloadtraccar-server-d784393c1e13d9a5f0467d4d8a194d98a0d48d1f.tar.gz
traccar-server-d784393c1e13d9a5f0467d4d8a194d98a0d48d1f.tar.bz2
traccar-server-d784393c1e13d9a5f0467d4d8a194d98a0d48d1f.zip
Handle new line
-rw-r--r--src/main/java/org/traccar/protocol/MobilogixProtocol.java2
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));