Remove incorrect MutexAutoLock
authorsfan5 <sfan5@live.de>
Thu, 19 Sep 2019 14:39:57 +0000 (16:39 +0200)
committersfan5 <sfan5@live.de>
Thu, 19 Sep 2019 14:46:41 +0000 (16:46 +0200)
The line declared a variable "m_con" instead of locking m_con.
getClient() doesn't need this anyway, so remove it.

src/network/serverpackethandler.cpp

index ecaf2a2a880d397be0f4e3afbfe1c67824aca656..a642f4a6e36e92fb1da2be24b27c2f98db55169e 100644 (file)
@@ -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
        {