diff options
author | stoffu <stoffu@protonmail.ch> | 2018-01-11 08:40:11 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2018-01-26 10:58:07 +0900 |
commit | 935e39c7f3be9d27fbb386fe4936152def45f0c3 (patch) | |
tree | bd7cf95d3ec4ac5e20e1af4e73a26e1979262308 /contrib/epee/include | |
parent | Merge pull request #3130 (diff) | |
download | monero-935e39c7f3be9d27fbb386fe4936152def45f0c3.tar.xz |
levin_protocol_handler_async: erase from back of vector instead of front
Diffstat (limited to 'contrib/epee/include')
-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); |