From 5c9983400fb085167bf11f8a0483b8e8f6dd8a24 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 19 Sep 2019 16:39:57 +0200 Subject: [PATCH] Remove incorrect MutexAutoLock 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 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp index ecaf2a2a8..a642f4a6e 100644 --- a/src/network/serverpackethandler.cpp +++ b/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 { -- 2.25.1