diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-01-27 17:23:53 -0800 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-01-27 17:23:53 -0800 |
commit | baaeefdecce28ddc6e7681b6ebd2ce087d0eb2a7 (patch) | |
tree | 8fce9d4b87d89049c9b1c621dd1f160d1e085a1a /contrib/epee | |
parent | Merge pull request #3075 (diff) | |
parent | levin_protocol_handler_async: erase from back of vector instead of front (diff) | |
download | monero-baaeefdecce28ddc6e7681b6ebd2ce087d0eb2a7.tar.xz |
Merge pull request #3098
935e39c7 levin_protocol_handler_async: erase from back of vector instead of front (stoffu)
Diffstat (limited to 'contrib/epee')
-rw-r--r-- | contrib/epee/include/net/levin_protocol_handler_async.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/net/levin_protocol_handler_async.h b/contrib/epee/include/net/levin_protocol_handler_async.h index 5b825cef9..ee64da5d8 100644 --- a/contrib/epee/include/net/levin_protocol_handler_async.h +++ b/contrib/epee/include/net/levin_protocol_handler_async.h @@ -752,7 +752,7 @@ void async_protocol_handler_config<t_connection_context>::del_out_connections(si { try { - auto i = out_connections.begin(); + auto i = out_connections.end() - 1; async_protocol_handler<t_connection_context> *conn = m_connects.at(*i); del_connection(conn); close(*i); |