mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-29 10:43:14 +00:00
Merge pull request #5824
2a41dc0
epee: fix connections not being properly closed in some instances (moneromooo-monero)
This commit is contained in:
commit
1b93cb74bb
1 changed files with 1 additions and 1 deletions
|
@ -791,7 +791,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 a new issue