mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
epee: fix connections not being properly closed in some instances
Fixed by Fixed by crCr62U0
This commit is contained in:
parent
459beb50d4
commit
2a41dc0453
@ -782,7 +782,7 @@ void async_protocol_handler_config<t_connection_context>::delete_connections(siz
|
|||||||
auto i = connections.end() - 1;
|
auto i = connections.end() - 1;
|
||||||
async_protocol_handler<t_connection_context> *conn = m_connects.at(*i);
|
async_protocol_handler<t_connection_context> *conn = m_connects.at(*i);
|
||||||
del_connection(conn);
|
del_connection(conn);
|
||||||
close(*i);
|
conn->close();
|
||||||
connections.erase(i);
|
connections.erase(i);
|
||||||
}
|
}
|
||||||
catch (const std::out_of_range &e)
|
catch (const std::out_of_range &e)
|
||||||
|
Loading…
Reference in New Issue
Block a user