From 935e39c7f3be9d27fbb386fe4936152def45f0c3 Mon Sep 17 00:00:00 2001 From: stoffu Date: Thu, 11 Jan 2018 08:40:11 +0900 Subject: [PATCH] levin_protocol_handler_async: erase from back of vector instead of front --- contrib/epee/include/net/levin_protocol_handler_async.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::del_out_connections(si { try { - auto i = out_connections.begin(); + auto i = out_connections.end() - 1; async_protocol_handler *conn = m_connects.at(*i); del_connection(conn); close(*i);