mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
ClientInterface: Use recursive mutex to prevent freeze in on_newplayer() (#8808)
This commit is contained in:
@@ -501,7 +501,7 @@ private:
|
||||
|
||||
// Connection
|
||||
std::shared_ptr<con::Connection> m_con;
|
||||
std::mutex m_clients_mutex;
|
||||
std::recursive_mutex m_clients_mutex;
|
||||
// Connected clients (behind the con mutex)
|
||||
RemoteClientMap m_clients;
|
||||
std::vector<std::string> m_clients_names; //for announcing masterserver
|
||||
|
Reference in New Issue
Block a user