mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
src/network/connection.h: Fix race condition
This commit is contained in:
parent
c39a85a88d
commit
79e2647556
1 changed files with 5 additions and 1 deletions
|
@ -1053,7 +1053,11 @@ protected:
|
||||||
void PrintInfo(std::ostream &out);
|
void PrintInfo(std::ostream &out);
|
||||||
void PrintInfo();
|
void PrintInfo();
|
||||||
|
|
||||||
std::list<u16> getPeerIDs() { return m_peer_ids; }
|
std::list<u16> getPeerIDs()
|
||||||
|
{
|
||||||
|
JMutexAutoLock peerlock(m_peers_mutex);
|
||||||
|
return m_peer_ids;
|
||||||
|
}
|
||||||
|
|
||||||
UDPSocket m_udpSocket;
|
UDPSocket m_udpSocket;
|
||||||
MutexedQueue<ConnectionCommand> m_command_queue;
|
MutexedQueue<ConnectionCommand> m_command_queue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue