mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Shutdown server immediately without leaving hanging server in main menu
This commit is contained in:
parent
93da58beed
commit
d295784f6e
@ -421,6 +421,7 @@ void CServerHandler::sendClientDisconnecting()
|
|||||||
networkConnection->close();
|
networkConnection->close();
|
||||||
networkConnection.reset();
|
networkConnection.reset();
|
||||||
logicConnection.reset();
|
logicConnection.reset();
|
||||||
|
waitForServerShutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CServerHandler::setCampaignState(std::shared_ptr<CampaignState> newCampaign)
|
void CServerHandler::setCampaignState(std::shared_ptr<CampaignState> newCampaign)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user