diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-12-22 21:16:39 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-12-22 21:16:39 +1300 |
commit | 0e22ee92528ed1a1ec76f536881928c4f7b78042 (patch) | |
tree | ce38a1d2b0d00e809926dce0136ea564ae984fe3 /src/org/traccar/protocol/AtrackFrameDecoder.java | |
parent | 00116baebfd152e1e4df7835673d1f6fb443e862 (diff) | |
download | trackermap-server-0e22ee92528ed1a1ec76f536881928c4f7b78042.tar.gz trackermap-server-0e22ee92528ed1a1ec76f536881928c4f7b78042.tar.bz2 trackermap-server-0e22ee92528ed1a1ec76f536881928c4f7b78042.zip |
Support UDP for Atrack (fix #341)
Diffstat (limited to 'src/org/traccar/protocol/AtrackFrameDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/AtrackFrameDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/AtrackFrameDecoder.java b/src/org/traccar/protocol/AtrackFrameDecoder.java index 90dfa68b6..35db02baf 100644 --- a/src/org/traccar/protocol/AtrackFrameDecoder.java +++ b/src/org/traccar/protocol/AtrackFrameDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 Anton Tananaev (anton.tananaev@gmail.com) + * Copyright 2013 - 2014 Anton Tananaev (anton.tananaev@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ public class AtrackFrameDecoder extends LengthFieldBasedFrameDecoder { // Keep alive message if (buf.readableBytes() >= KEEPALIVE_LENGTH && buf.getUnsignedShort(buf.readerIndex()) == 0xfe02) { - channel.write(buf.readBytes(KEEPALIVE_LENGTH)); + return buf.readBytes(KEEPALIVE_LENGTH); } return super.decode(ctx, channel, buf); |