修复经常挂bug

This commit is contained in:
aozhiwei 2018-09-03 14:12:23 +08:00
parent cc68af56df
commit cc6c4ffa5e

View File

@ -335,7 +335,9 @@ void App::ProcessClientMsg(MsgHdr& hdr)
}
} else {
GameClient* client = GameClientMgr::Instance()->GetGameClientBySocket(hdr.socket_handle);
conn = client->conn;
if (client) {
conn = client->conn;
}
}
if (conn) {
conn->ForwardClientMsg(hdr);