aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-07 22:43:54 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-09-07 22:43:54 +1200
commit26760bedcb7c66da2d64d75e88e4030136f3e970 (patch)
tree6eac94376553f907e7c83fb43370776ea4585f59 /src/org/traccar/protocol/MeiligaoProtocolDecoder.java
parentabe051d297b445f8fb76d4069918b79e9e74d0c9 (diff)
downloadtrackermap-server-26760bedcb7c66da2d64d75e88e4030136f3e970.tar.gz
trackermap-server-26760bedcb7c66da2d64d75e88e4030136f3e970.tar.bz2
trackermap-server-26760bedcb7c66da2d64d75e88e4030136f3e970.zip
Fix an issue in Meiligao decoder
Diffstat (limited to 'src/org/traccar/protocol/MeiligaoProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/MeiligaoProtocolDecoder.java3
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;
}
}