aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-10-11 23:23:33 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-10-11 23:23:33 +1300
commit6f177f5ceb8c8ce9af7be71effd1855dc764507a (patch)
tree7dd3abf674cf1be3729a0e1031a7f935747b4e2b /src/org/traccar/protocol
parentef6d4a8fad783e3ce6e657cd1b47accf2ae3f6ef (diff)
downloadtrackermap-server-6f177f5ceb8c8ce9af7be71effd1855dc764507a.tar.gz
trackermap-server-6f177f5ceb8c8ce9af7be71effd1855dc764507a.tar.bz2
trackermap-server-6f177f5ceb8c8ce9af7be71effd1855dc764507a.zip
Fix atrack frame decoder
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/AtrackFrameDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AtrackFrameDecoder.java b/src/org/traccar/protocol/AtrackFrameDecoder.java
index 970ddc66b..267b6de12 100644
--- a/src/org/traccar/protocol/AtrackFrameDecoder.java
+++ b/src/org/traccar/protocol/AtrackFrameDecoder.java
@@ -35,7 +35,7 @@ public class AtrackFrameDecoder extends LengthFieldBasedFrameDecoder {
ChannelBuffer buf) throws Exception {
// Keep alive message
- if (buf.readableBytes() >= KEEPALIVE_LENGTH ||
+ if (buf.readableBytes() >= KEEPALIVE_LENGTH &&
buf.getUnsignedShort(buf.readerIndex()) == 0xfe02) {
channel.write(buf.readBytes(KEEPALIVE_LENGTH));
}