mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
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:
parent
0b5c5499ec
commit
5c9983400f
1 changed files with 1 additions and 5 deletions
|
@ -309,11 +309,7 @@ void Server::handleCommand_Init2(NetworkPacket* pkt)
|
||||||
// Send media announcement
|
// Send media announcement
|
||||||
sendMediaAnnouncement(pkt->getPeerId(), lang);
|
sendMediaAnnouncement(pkt->getPeerId(), lang);
|
||||||
|
|
||||||
RemoteClient *client;
|
RemoteClient *client = getClient(pkt->getPeerId(), CS_InitDone);
|
||||||
{
|
|
||||||
MutexAutoLock(m_con);
|
|
||||||
client = getClient(pkt->getPeerId(), CS_InitDone);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Send active objects
|
// Send active objects
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue