1
0
Fork 0

Fix #12655, 4f6d75f: inconsistent state in client list and potential crash after client leaves

pull/12665/head
Rubidium 2024-05-11 21:39:14 +02:00 committed by rubidium42
parent 95a89e43b2
commit f939e81bf0
1 changed files with 2 additions and 2 deletions

View File

@ -216,6 +216,8 @@ ServerNetworkGameSocketHandler::~ServerNetworkGameSocketHandler()
this->savegame->Destroy();
this->savegame = nullptr;
}
InvalidateWindowData(WC_CLIENT_LIST, 0);
}
std::unique_ptr<Packet> ServerNetworkGameSocketHandler::ReceivePacket()
@ -279,8 +281,6 @@ NetworkRecvStatus ServerNetworkGameSocketHandler::CloseConnection(NetworkRecvSta
this->DeferDeletion();
InvalidateWindowData(WC_CLIENT_LIST, 0);
return status;
}