Skip to content

Commit 5c99834

Browse files
committedSep 19, 2019
Remove incorrect MutexAutoLock
The line declared a variable "m_con" instead of locking m_con. getClient() doesn't need this anyway, so remove it.
1 parent 0b5c549 commit 5c99834

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

Diff for: ‎src/network/serverpackethandler.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,7 @@ void Server::handleCommand_Init2(NetworkPacket* pkt)
309309
// Send media announcement
310310
sendMediaAnnouncement(pkt->getPeerId(), lang);
311311

312-
RemoteClient *client;
313-
{
314-
MutexAutoLock(m_con);
315-
client = getClient(pkt->getPeerId(), CS_InitDone);
316-
}
312+
RemoteClient *client = getClient(pkt->getPeerId(), CS_InitDone);
317313

318314
// Send active objects
319315
{

0 commit comments

Comments
 (0)
Please sign in to comment.