1
0
Fork 0
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:
SmallJoker 2019-08-17 13:27:28 +02:00 committed by GitHub
parent 13b22e2afb
commit d73e458db6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 15 deletions

View file

@ -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