aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-01-30 21:24:36 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-01-30 21:24:36 +1300
commit9695184ea5d6bafd521d815e4dd994ca61f04558 (patch)
tree5f995dd28b2c6140eed0a15f70d5c1877ecb3133 /src/org/traccar/ServerManager.java
parent7881ce7a3dd49b29b3a97781233beffcac08d07d (diff)
downloadtrackermap-server-9695184ea5d6bafd521d815e4dd994ca61f04558.tar.gz
trackermap-server-9695184ea5d6bafd521d815e4dd994ca61f04558.tar.bz2
trackermap-server-9695184ea5d6bafd521d815e4dd994ca61f04558.zip
Workaround for meiligao protocol (fix #130)
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 2fb9f3f6b..aa30bab30 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -369,7 +369,7 @@ public class ServerManager {
serverList.add(new TrackerServer(this, new ServerBootstrap(), protocol) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
- pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1024, 2, 2, -4, 4));
+ pipeline.addLast("frameDecoder", new MeiligaoFrameDecoder());
pipeline.addLast("objectDecoder", new MeiligaoProtocolDecoder(ServerManager.this));
}
});