diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-07 22:43:54 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-07 22:43:54 +1200 |
commit | 26760bedcb7c66da2d64d75e88e4030136f3e970 (patch) | |
tree | 6eac94376553f907e7c83fb43370776ea4585f59 /src/org/traccar | |
parent | abe051d297b445f8fb76d4069918b79e9e74d0c9 (diff) | |
download | traccar-server-26760bedcb7c66da2d64d75e88e4030136f3e970.tar.gz traccar-server-26760bedcb7c66da2d64d75e88e4030136f3e970.tar.bz2 traccar-server-26760bedcb7c66da2d64d75e88e4030136f3e970.zip |
Fix an issue in Meiligao decoder
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/MeiligaoProtocolDecoder.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java index 8b559beec..3510b56a3 100644 --- a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java +++ b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java @@ -303,12 +303,15 @@ public class MeiligaoProtocolDecoder extends BaseProtocolDecoder { if (command == MSG_LOGIN) { response = ChannelBuffers.wrappedBuffer(new byte[] {0x01}); sendResponse(channel, remoteAddress, id, MSG_LOGIN_RESPONSE, response); + return null; } else if (command == MSG_HEARTBEAT) { response = ChannelBuffers.wrappedBuffer(new byte[] {0x01}); sendResponse(channel, remoteAddress, id, MSG_HEARTBEAT, response); + return null; } else if (command == MSG_SERVER) { response = ChannelBuffers.copiedBuffer(getServer(channel), StandardCharsets.US_ASCII); sendResponse(channel, remoteAddress, id, MSG_SERVER, response); + return null; } } |