Handler update.
This commit is contained in:
@@ -291,9 +291,11 @@ public enum Protocol {
|
|||||||
if (msg == null)
|
if (msg == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Protocol protocol = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
Protocol protocol = msg.getProtocolMsg();
|
protocol = msg.getProtocolMsg();
|
||||||
|
|
||||||
// Unhandled opcode
|
// Unhandled opcode
|
||||||
|
|
||||||
@@ -308,7 +310,7 @@ public enum Protocol {
|
|||||||
protocol.handler.handleNetMsg(msg);
|
protocol.handler.handleNetMsg(msg);
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Logger.error("handler for " + msg.getProtocolMsg() + " failed: " + e);
|
Logger.error("handler for " + protocol + " failed: " + e);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user