aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-02-07 07:25:19 +1000
committerAnton Tananaev <anton.tananaev@gmail.com>2016-02-07 07:25:19 +1000
commit18aaf44bcde8eb5243b069727fb4f056e94df938 (patch)
tree8b1b1525a39cdac44e9045af1d9850d77a395ce5
parent6153dceed18c7ae510cc1d71c407a0cc796dfefe (diff)
downloadtrackermap-server-18aaf44bcde8eb5243b069727fb4f056e94df938.tar.gz
trackermap-server-18aaf44bcde8eb5243b069727fb4f056e94df938.tar.bz2
trackermap-server-18aaf44bcde8eb5243b069727fb4f056e94df938.zip
Change TLT-2H frame decoder
-rw-r--r--src/org/traccar/protocol/Tlt2hProtocol.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Tlt2hProtocol.java b/src/org/traccar/protocol/Tlt2hProtocol.java
index d1a8ee735..3a1bf99ff 100644
--- a/src/org/traccar/protocol/Tlt2hProtocol.java
+++ b/src/org/traccar/protocol/Tlt2hProtocol.java
@@ -36,7 +36,7 @@ public class Tlt2hProtocol extends BaseProtocol {
serverList.add(new TrackerServer(new ServerBootstrap(), this.getName()) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
- pipeline.addLast("frameDecoder", new CharacterDelimiterFrameDecoder(32 * 1024, "##"));
+ pipeline.addLast("frameDecoder", new CharacterDelimiterFrameDecoder(32 * 1024, "##\r\n"));
pipeline.addLast("stringDecoder", new StringDecoder());
pipeline.addLast("stringEncoder", new StringEncoder());
pipeline.addLast("objectDecoder", new Tlt2hProtocolDecoder(Tlt2hProtocol.this));