aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/AdmProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-20 10:31:32 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-20 10:31:32 +1300
commit1980d7a51f1a069cddbbe868f957c2152107547b (patch)
tree3a18bd99ece479f1ef08b009ce7183019a985b1e /src/org/traccar/protocol/AdmProtocol.java
parenta3fd8b22ac0e9daa21cac87baf4a4807c4a58c3e (diff)
downloadtrackermap-server-1980d7a51f1a069cddbbe868f957c2152107547b.tar.gz
trackermap-server-1980d7a51f1a069cddbbe868f957c2152107547b.tar.bz2
trackermap-server-1980d7a51f1a069cddbbe868f957c2152107547b.zip
Fix ADM protocol frame decoder
Diffstat (limited to 'src/org/traccar/protocol/AdmProtocol.java')
-rw-r--r--src/org/traccar/protocol/AdmProtocol.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AdmProtocol.java b/src/org/traccar/protocol/AdmProtocol.java
index c07acb033..40dd340cf 100644
--- a/src/org/traccar/protocol/AdmProtocol.java
+++ b/src/org/traccar/protocol/AdmProtocol.java
@@ -35,7 +35,7 @@ public class AdmProtocol extends BaseProtocol {
TrackerServer server = new TrackerServer(new ServerBootstrap(), this.getName()) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
- pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1024, 2, 1, -4, 0));
+ pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1024, 2, 1, -3, 0));
pipeline.addLast("objectDecoder", new AdmProtocolDecoder(AdmProtocol.this));
}
};