aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-05-31 23:31:08 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-05-31 23:31:08 +1200
commit670acf03fb75e56fc0efc0c1fcfac04060bfb985 (patch)
tree9726277b24d5461afd651822cbf294ab3f3c691a
parent6883ecf8462e26f63d2709426c2cacf5dd318c49 (diff)
downloadtrackermap-server-670acf03fb75e56fc0efc0c1fcfac04060bfb985.tar.gz
trackermap-server-670acf03fb75e56fc0efc0c1fcfac04060bfb985.tar.bz2
trackermap-server-670acf03fb75e56fc0efc0c1fcfac04060bfb985.zip
Fix problem in Castel decoder
-rw-r--r--src/org/traccar/protocol/CastelProtocolDecoder.java2
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());