mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
ClientInterface: Use recursive mutex to prevent freeze in on_newplayer() (#8808)
This commit is contained in:
parent
13b22e2afb
commit
d73e458db6
2 changed files with 15 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue