1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

Fix connection termination handling

This commit is contained in:
Ivan Savenko
2024-05-13 14:09:59 +00:00
parent 2bb96018b8
commit 93038b791e
3 changed files with 7 additions and 4 deletions

View File

@ -913,7 +913,6 @@ void CServerHandler::onDisconnected(const std::shared_ptr<INetworkConnection> &
if(getState() == EClientState::DISCONNECTING)
{
assert(networkConnection == nullptr);
// Note: this branch can be reached on app shutdown, when main thread holds mutex till destruction
logNetwork->info("Successfully closed connection to server!");
return;