mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-27 13:14:13 -08:00
server memory leak fixed
This commit is contained in:
@@ -405,6 +405,7 @@ ResponseCode Server_ProtocolHandler::cmdJoinRoom(Command_JoinRoom *cmd, CommandC
|
||||
if (!r)
|
||||
return RespNameNotFound;
|
||||
|
||||
QMutexLocker serverLocker(&server->serverMutex);
|
||||
QMutexLocker roomLocker(&r->roomMutex);
|
||||
r->addClient(this);
|
||||
rooms.insert(r->getId(), r);
|
||||
|
||||
Reference in New Issue
Block a user