diff --git a/server/wsproxy/app.cc b/server/wsproxy/app.cc index 6a61201..d190cad 100644 --- a/server/wsproxy/app.cc +++ b/server/wsproxy/app.cc @@ -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);