1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Cleanup code

This commit is contained in:
nordsoft
2022-10-06 17:56:54 +04:00
parent 16e185343a
commit ea49b8cf40
6 changed files with 6 additions and 20 deletions

View File

@@ -206,10 +206,10 @@ void CVCMIServer::threadAnnounceLobby()
announcePack(std::move(announceQueue.front()));
announceQueue.pop_front();
}
if(state != EServerState::LOBBY)
if(state != EServerState::LOBBY && hangingConnections.empty())
{
//if(acceptor)
//acceptor->close();
if(acceptor)
acceptor->close();
}
if(acceptor)