aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-07-21 07:19:49 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-07-21 07:19:49 -0700
commit878b809b14cf6d247305194777ddeab0bc58c2c1 (patch)
tree357be2147e2517dfd3d374df1914914b3e493647 /src/main/java/org/traccar/protocol
parente8741d7ddc28b9c2db3865129368f0a8eaa6b032 (diff)
downloadtraccar-server-878b809b14cf6d247305194777ddeab0bc58c2c1.tar.gz
traccar-server-878b809b14cf6d247305194777ddeab0bc58c2c1.tar.bz2
traccar-server-878b809b14cf6d247305194777ddeab0bc58c2c1.zip
Handle empty messages
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/EasyTrackProtocol.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/EasyTrackProtocol.java b/src/main/java/org/traccar/protocol/EasyTrackProtocol.java
index 4626156a5..972b36077 100644
--- a/src/main/java/org/traccar/protocol/EasyTrackProtocol.java
+++ b/src/main/java/org/traccar/protocol/EasyTrackProtocol.java
@@ -34,7 +34,7 @@ public class EasyTrackProtocol extends BaseProtocol {
addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast(new CharacterDelimiterFrameDecoder(1024, "#", "\r\n"));
+ pipeline.addLast(new CharacterDelimiterFrameDecoder(1024, "#\r\n", "#", "\r\n"));
pipeline.addLast(new StringDecoder());
pipeline.addLast(new StringEncoder());
pipeline.addLast(new EasyTrackProtocolEncoder(EasyTrackProtocol.this));