aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-26 11:04:00 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-26 11:04:00 +1200
commitce3b993656d351ac4d4f40271620587c69df0c6e (patch)
tree54a1036e78259e8d7fae15f1967b25237fce681b /src/org/traccar/ServerManager.java
parentb7f1df549d57582c18b44f74a8af9739b29af040 (diff)
downloadtrackermap-server-ce3b993656d351ac4d4f40271620587c69df0c6e.tar.gz
trackermap-server-ce3b993656d351ac4d4f40271620587c69df0c6e.tar.bz2
trackermap-server-ce3b993656d351ac4d4f40271620587c69df0c6e.zip
Change TR900 frame decoder (fix #1246)
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r--src/org/traccar/ServerManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index 1edc68fc3..3ad7cb474 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -1176,7 +1176,7 @@ public class ServerManager {
serverList.add(new TrackerServer(new ServerBootstrap(), protocol) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
- pipeline.addLast("frameDecoder", new CharacterDelimiterFrameDecoder(1024, '!'));
+ pipeline.addLast("frameDecoder", new LineBasedFrameDecoder(1024));
pipeline.addLast("stringDecoder", new StringDecoder());
pipeline.addLast("stringEncoder", new StringEncoder());
pipeline.addLast("objectDecoder", new Tr900ProtocolDecoder(protocol));