1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

fix repeated launches of single player

now server actually terminates
This commit is contained in:
Andrey Filipenkov
2022-07-28 12:40:06 +03:00
parent b7bc8495d8
commit cd4b68c034
3 changed files with 16 additions and 10 deletions

View File

@ -190,7 +190,7 @@ void CServerHandler::startLocalServerAndConnect()
boost::condition_variable cond;
threadRunLocalServer = std::make_shared<boost::thread>([&cond, this] {
setThreadName("CVCMIServer");
CVCMIServer::create(&cond);
CVCMIServer::create(&cond, uuid);
// todo ios copypaste
threadRunLocalServer.reset();
CSH->campaignServerRestartLock.setn(false);