mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
Replace std::list<session_t> in networking code (#10215)
This commit is contained in:
@@ -1269,7 +1269,8 @@ bool Connection::deletePeer(session_t peer_id, bool timeout)
|
||||
return false;
|
||||
peer = m_peers[peer_id];
|
||||
m_peers.erase(peer_id);
|
||||
m_peer_ids.remove(peer_id);
|
||||
auto it = std::find(m_peer_ids.begin(), m_peer_ids.end(), peer_id);
|
||||
m_peer_ids.erase(it);
|
||||
}
|
||||
|
||||
Address peer_address;
|
||||
|
Reference in New Issue
Block a user