aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-01-27 17:23:53 -0800
committerRiccardo Spagni <ric@spagni.net>2018-01-27 17:23:53 -0800
commitbaaeefdecce28ddc6e7681b6ebd2ce087d0eb2a7 (patch)
tree8fce9d4b87d89049c9b1c621dd1f160d1e085a1a /contrib/epee
parentMerge pull request #3075 (diff)
parentlevin_protocol_handler_async: erase from back of vector instead of front (diff)
downloadmonero-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.h2
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);