From 31884de2de46e689b57c81997d14c6c538f88dde Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 24 May 2014 22:56:32 +1200 Subject: Fix Meiligao decoder (fix #709) --- src/org/traccar/protocol/MeiligaoProtocolDecoder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/org') 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: -- cgit v1.2.3