diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/connection.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network/connection.h b/src/network/connection.h index b1f9e70a8..c48da2c70 100644 --- a/src/network/connection.h +++ b/src/network/connection.h @@ -1053,7 +1053,11 @@ protected: void PrintInfo(std::ostream &out); 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; MutexedQueue<ConnectionCommand> m_command_queue; |