mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02: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:
@@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user