1
0
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:
SmallJoker
2019-08-17 13:27:28 +02:00
committed by GitHub
parent 13b22e2afb
commit d73e458db6
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