summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2019-09-19 16:39:57 +0200
committersfan5 <sfan5@live.de>2019-09-19 16:46:41 +0200
commit5c9983400fb085167bf11f8a0483b8e8f6dd8a24 (patch)
treeee0906d91993e542fa8e18e37dd5a4bd3836e141 /src/network
parent0b5c5499ec4be6d1d4349478d89edb793d36ec66 (diff)
downloadminetest-5c9983400fb085167bf11f8a0483b8e8f6dd8a24.tar.gz
minetest-5c9983400fb085167bf11f8a0483b8e8f6dd8a24.tar.bz2
minetest-5c9983400fb085167bf11f8a0483b8e8f6dd8a24.zip
Remove incorrect MutexAutoLock
The line declared a variable "m_con" instead of locking m_con. getClient() doesn't need this anyway, so remove it.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/serverpackethandler.cpp6
1 files changed, 1 insertions, 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
{