mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-23 01:49:16 -08:00
changed Server_Room::gamesMutex to QReadWriteLock
This commit is contained in:
@@ -78,7 +78,7 @@ void Server_AbstractUserInterface::joinPersistentGames(ResponseContainer &rc)
|
||||
Server_Room *room = server->getRooms().value(pr.getRoomId());
|
||||
if (!room)
|
||||
continue;
|
||||
QMutexLocker roomGamesLocker(&room->gamesMutex);
|
||||
QReadLocker roomGamesLocker(&room->gamesLock);
|
||||
|
||||
Server_Game *game = room->getGames().value(pr.getGameId());
|
||||
if (!game)
|
||||
|
||||
Reference in New Issue
Block a user