From 878b809b14cf6d247305194777ddeab0bc58c2c1 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 21 Jul 2020 07:19:49 -0700 Subject: Handle empty messages --- src/main/java/org/traccar/protocol/EasyTrackProtocol.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org/traccar') 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)); -- cgit v1.2.3