From e98b26a87eff42d9bfcbf922e1eb9054d9fab39e Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 12 Mar 2016 15:36:18 +0000 Subject: [PATCH] epee: fix bug deleting more than one connection at once --- contrib/epee/include/net/levin_protocol_handler_async.h | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/epee/include/net/levin_protocol_handler_async.h b/contrib/epee/include/net/levin_protocol_handler_async.h index 7331faa3..be231a7e 100644 --- a/contrib/epee/include/net/levin_protocol_handler_async.h +++ b/contrib/epee/include/net/levin_protocol_handler_async.h @@ -695,6 +695,7 @@ void async_protocol_handler_config::del_out_connections(si { close(*out_connections.begin()); del_connection(m_connects.at(*out_connections.begin())); + out_connections.erase(out_connections.begin()); --count; }