nordsoft 2 years ago
parent
commit
fe7c01cd37
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/CServerHandler.cpp

+ 1 - 1
client/CServerHandler.cpp

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