aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-05-24 22:56:32 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-05-24 22:56:32 +1200
commit31884de2de46e689b57c81997d14c6c538f88dde (patch)
tree3d9d8dc80681fe364f4a0a7f9bb424effc59cea9 /src/org
parentc93e2764fa214a58196561af93aba0037debb92e (diff)
downloadtraccar-server-31884de2de46e689b57c81997d14c6c538f88dde.tar.gz
traccar-server-31884de2de46e689b57c81997d14c6c538f88dde.tar.bz2
traccar-server-31884de2de46e689b57c81997d14c6c538f88dde.zip
Fix Meiligao decoder (fix #709)
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/MeiligaoProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
index aee6f8e1c..c1b75d00f 100644
--- a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
+++ b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
@@ -141,16 +141,16 @@ public class MeiligaoProtocolDecoder extends BaseProtocolDecoder {
case MSG_LOGIN:
response = ChannelBuffers.wrappedBuffer(new byte[] {0x01});
sendResponse(channel, id, MSG_LOGIN_RESPONSE, response);
- break;
+ return null;
case MSG_HEARTBEAT:
response = ChannelBuffers.wrappedBuffer(new byte[] {0x01});
sendResponse(channel, id, MSG_HEARTBEAT, response);
- break;
+ return null;
case MSG_SERVER:
response = ChannelBuffers.copiedBuffer(
getMeiligaoServer(channel), Charset.defaultCharset());
sendResponse(channel, id, MSG_SERVER, response);
- break;
+ return null;
case MSG_POSITION:
case MSG_POSITION_LOGGED:
case MSG_ALARM: