nordsoft 2 年之前
父节点
当前提交
fe7c01cd37
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/CServerHandler.cpp

+ 1 - 1
client/CServerHandler.cpp

@@ -924,7 +924,7 @@ void CServerHandler::threadHandleConnection()
 	try
 	{
 		sendClientConnecting();
-		while(c->connected)
+		while(c && c->connected)
 		{
 			while(state == EClientState::STARTING)
 				boost::this_thread::sleep_for(boost::chrono::milliseconds(10));