aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-05-01 23:38:28 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-05-01 23:38:28 +1200
commit6a6adc4f33d38ee964494d01100eaa127adbf356 (patch)
treed15d16a9b6633dde1f099162293353db9abfe628 /src/org/traccar/ServerManager.java
parent208312ce478f94c44d9020625edc6cd1a26fa00f (diff)
downloadtrackermap-server-6a6adc4f33d38ee964494d01100eaa127adbf356.tar.gz
trackermap-server-6a6adc4f33d38ee964494d01100eaa127adbf356.tar.bz2
trackermap-server-6a6adc4f33d38ee964494d01100eaa127adbf356.zip
Support intellitrac sync message (fix #227)
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r--src/org/traccar/ServerManager.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index 914e818e3..ac97da4f2 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -791,9 +791,7 @@ public class ServerManager {
serverList.add(new TrackerServer(this, new ServerBootstrap(), protocol) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
- byte delimiter[] = { (byte) '\r', (byte) '\n' };
- pipeline.addLast("frameDecoder",
- new DelimiterBasedFrameDecoder(1024, ChannelBuffers.wrappedBuffer(delimiter)));
+ pipeline.addLast("frameDecoder", new IntellitracFrameDecoder(1024));
pipeline.addLast("stringDecoder", new StringDecoder());
pipeline.addLast("stringEncoder", new StringEncoder());
pipeline.addLast("objectDecoder", new IntellitracProtocolDecoder(ServerManager.this));