mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
async_protocol_handler_config: remove connection correctly
This commit is contained in:
parent
1b51d398fb
commit
80125a2f77
@ -787,7 +787,7 @@ void async_protocol_handler_config<t_connection_context>::delete_connections(siz
|
||||
{
|
||||
auto i = connections.end() - 1;
|
||||
async_protocol_handler<t_connection_context> *conn = m_connects.at(*i);
|
||||
del_connection(conn);
|
||||
m_connects.erase(*i);
|
||||
conn->close();
|
||||
connections.erase(i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user