Protocol handler code update
This commit is contained in:
@@ -300,13 +300,13 @@ public enum Protocol {
|
|||||||
if (protocol == null)
|
if (protocol == null)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
AbstractClientMsgHandler msgHandler = protocol.handler;
|
|
||||||
|
|
||||||
// Eat this message; no or empty handler
|
// Eat this message; no or empty handler
|
||||||
|
|
||||||
if (msgHandler == null)
|
if (protocol.handler == null)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
protocol.handler.handleNetMsg(msg);
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Logger.error("handler for " + msg.getProtocolMsg() + " failed: " + e);
|
Logger.error("handler for " + msg.getProtocolMsg() + " failed: " + e);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user