Skip to content

Commit

Permalink
Remove incorrect MutexAutoLock
Browse files Browse the repository at this point in the history
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 5c99834
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/network/serverpackethandler.cpp
Expand Up @@ -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
{
Expand Down

0 comments on commit 5c99834

Please sign in to comment.