projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b5c549
)
Remove incorrect MutexAutoLock
author
sfan5
<sfan5@live.de>
Thu, 19 Sep 2019 14:39:57 +0000
(16:39 +0200)
committer
sfan5
<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
patch
|
blob
|
history
diff --git
a/src/network/serverpackethandler.cpp
b/src/network/serverpackethandler.cpp
index ecaf2a2a880d397be0f4e3afbfe1c67824aca656..a642f4a6e36e92fb1da2be24b27c2f98db55169e 100644
(file)
--- 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
{