From cc6c4ffa5eea1d31f573d8c54a1eba1b5448ff8e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 3 Sep 2018 14:12:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=8F=E5=B8=B8=E6=8C=82bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/wsproxy/app.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);