1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Shutdown server immediately without leaving hanging server in main menu

This commit is contained in:
Ivan Savenko 2024-05-13 15:43:05 +00:00
parent 93da58beed
commit d295784f6e

View File

@ -421,6 +421,7 @@ void CServerHandler::sendClientDisconnecting()
networkConnection->close();
networkConnection.reset();
logicConnection.reset();
waitForServerShutdown();
}
void CServerHandler::setCampaignState(std::shared_ptr<CampaignState> newCampaign)