Skip to content
Permalink
Browse files

Remove incorrect MutexAutoLock

The line declared a variable "m_con" instead of locking m_con.
getClient() doesn't need this anyway, so remove it.
  • Loading branch information
sfan5 committed Sep 19, 2019
1 parent 0b5c549 commit 5c9983400fb085167bf11f8a0483b8e8f6dd8a24
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/network/serverpackethandler.cpp
@@ -309,11 +309,7 @@ void Server::handleCommand_Init2(NetworkPacket* pkt)
// Send media announcement
sendMediaAnnouncement(pkt->getPeerId(), lang);

RemoteClient *client;
{
MutexAutoLock(m_con);
client = getClient(pkt->getPeerId(), CS_InitDone);
}
RemoteClient *client = getClient(pkt->getPeerId(), CS_InitDone);

// Send active objects
{

0 comments on commit 5c99834

Please sign in to comment.
You can’t perform that action at this time.