Browse Source

Merge pull request #4983 from IvanSavenko/fix_freeze_on_cancel

Fix freeze on closing server before starting the game
Ivan Savenko 10 months ago
parent
commit
3fb26a9775
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/CVCMIServer.cpp

+ 1 - 1
server/CVCMIServer.cpp

@@ -300,7 +300,7 @@ void CVCMIServer::onDisconnected(const std::shared_ptr<INetworkConnection> & con
 	std::shared_ptr<CConnection> c = findConnection(connection);
 
 	// player may have already disconnected via clientDisconnected call
-	if (c && gh && getState() == EServerState::GAMEPLAY)
+	if (c)
 	{
 		LobbyClientDisconnected lcd;
 		lcd.c = c;