return;
}
}
}
}
GameUpBuffer c = null;
while ((c = msgQueue.poll()) != null) {
short type = c.getShort();
try {
GameHandler handler = GameHandlerManager.getInstance().getHandler(type);
if (handler != null) {
if (!handler.isSystem() && c.attachment() == null) // real upstream message
handler.process(c.getConnection(), c);
else if (handler.isSystem()) // the system message
handler.process(c.getConnection(), c);
else {
logger.error("error in upstream :" + type);
}
} else {
logger.error("error type = " + type);