mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 16:27:39 +00:00
levin_protocol_handler_async: erase from back of vector instead of front
This commit is contained in:
parent
09d19c9139
commit
935e39c7f3
1 changed files with 1 additions and 1 deletions
|
@ -752,7 +752,7 @@ void async_protocol_handler_config<t_connection_context>::del_out_connections(si
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
auto i = out_connections.begin();
|
auto i = out_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);
|
close(*i);
|
||||||
|
|
Loading…
Reference in a new issue