diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-31 23:31:08 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-31 23:31:08 +1200 |
commit | 670acf03fb75e56fc0efc0c1fcfac04060bfb985 (patch) | |
tree | 9726277b24d5461afd651822cbf294ab3f3c691a /src/org/traccar | |
parent | 6883ecf8462e26f63d2709426c2cacf5dd318c49 (diff) | |
download | trackermap-server-670acf03fb75e56fc0efc0c1fcfac04060bfb985.tar.gz trackermap-server-670acf03fb75e56fc0efc0c1fcfac04060bfb985.tar.bz2 trackermap-server-670acf03fb75e56fc0efc0c1fcfac04060bfb985.zip |
Fix problem in Castel decoder
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/CastelProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/CastelProtocolDecoder.java b/src/org/traccar/protocol/CastelProtocolDecoder.java index 75021d3cd..0b00c050e 100644 --- a/src/org/traccar/protocol/CastelProtocolDecoder.java +++ b/src/org/traccar/protocol/CastelProtocolDecoder.java @@ -80,7 +80,7 @@ public class CastelProtocolDecoder extends BaseProtocolDecoder { return null; } else if (type == MSG_LOGIN) { - if (channel == null) { + if (channel != null) { ChannelBuffer response = ChannelBuffers.directBuffer(ByteOrder.LITTLE_ENDIAN, 41); response.writeByte(0x40); response.writeByte(0x40); response.writeShort(response.capacity()); |