From d295784f6efbacc2ad72953ee57a0f5fc79ad126 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Mon, 13 May 2024 15:43:05 +0000 Subject: [PATCH] Shutdown server immediately without leaving hanging server in main menu --- client/CServerHandler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/CServerHandler.cpp b/client/CServerHandler.cpp index b41effc9d..fe3477fa3 100644 --- a/client/CServerHandler.cpp +++ b/client/CServerHandler.cpp @@ -421,6 +421,7 @@ void CServerHandler::sendClientDisconnecting() networkConnection->close(); networkConnection.reset(); logicConnection.reset(); + waitForServerShutdown(); } void CServerHandler::setCampaignState(std::shared_ptr newCampaign)