mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
server memory leak fixed
This commit is contained in:
parent
fd171fa260
commit
83e2e3666a
4 changed files with 12 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue