1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00

Merge pull request #4983 from IvanSavenko/fix_freeze_on_cancel

Fix freeze on closing server before starting the game
This commit is contained in:
Ivan Savenko 2024-11-26 18:11:45 +02:00 committed by GitHub
commit 3fb26a9775
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;