mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
fix regressions
This commit is contained in:
parent
2a0cf45f4d
commit
632987f747
3 changed files with 6 additions and 5 deletions
|
|
@ -73,14 +73,14 @@ void Server_ProtocolHandler::prepareDestroy()
|
|||
continue;
|
||||
}
|
||||
game->gameMutex.lock();
|
||||
Server_Player *p = game->getPlayer(gameIterator.value().second);
|
||||
if (!p) {
|
||||
auto *participant = game->getParticipants().value(gameIterator.value().second);
|
||||
if (!participant) {
|
||||
game->gameMutex.unlock();
|
||||
room->gamesLock.unlock();
|
||||
continue;
|
||||
}
|
||||
|
||||
p->disconnectClient();
|
||||
participant->disconnectClient();
|
||||
|
||||
game->gameMutex.unlock();
|
||||
room->gamesLock.unlock();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue