Remove incorrect MutexAutoLock

The line declared a variable "m_con" instead of locking m_con.
getClient() doesn't need this anyway, so remove it.
This commit is contained in:
sfan5 2019-09-19 16:39:57 +02:00
parent 0b5c5499ec
commit 5c9983400f

@ -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
{