aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
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 /src/main/java/org/traccar/protocol
parente47446459d7a732efdad46b47b7108eef45539a2 (diff)
downloadtrackermap-server-d784393c1e13d9a5f0467d4d8a194d98a0d48d1f.tar.gz
trackermap-server-d784393c1e13d9a5f0467d4d8a194d98a0d48d1f.tar.bz2
trackermap-server-d784393c1e13d9a5f0467d4d8a194d98a0d48d1f.zip
Handle new line
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-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));