Compare commits
2 Commits
3395efee49
...
adfbf87056
| Author | SHA1 | Date | |
|---|---|---|---|
| adfbf87056 | |||
| d80231eef0 |
@@ -288,12 +288,18 @@ public enum Protocol {
|
||||
|
||||
public static boolean handleClientMsg(ClientNetMsg msg) {
|
||||
|
||||
// Main message handler for Magicbane. All messages
|
||||
// incoming from the client are executed here for
|
||||
// both the login and world servers.
|
||||
|
||||
if (msg == null)
|
||||
return false;
|
||||
|
||||
Protocol protocol = null;
|
||||
|
||||
try {
|
||||
|
||||
Protocol protocol = msg.getProtocolMsg();
|
||||
protocol = msg.getProtocolMsg();
|
||||
|
||||
// Unhandled opcode
|
||||
|
||||
@@ -308,7 +314,7 @@ public enum Protocol {
|
||||
protocol.handler.handleNetMsg(msg);
|
||||
|
||||
} catch (Exception e) {
|
||||
Logger.error("handler for " + msg.getProtocolMsg() + " failed: " + e);
|
||||
Logger.error("handler for " + protocol + " failed: " + e);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user