From 7fd140e4f7830061ba66707c63ae141acc7933e6 Mon Sep 17 00:00:00 2001 From: anon Date: Fri, 19 Feb 2021 22:27:28 +0000 Subject: [PATCH] async_protocol_handler_config: remove connection correctly --- 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 debe22208..762537e3f 100644 --- a/contrib/epee/include/net/levin_protocol_handler_async.h +++ b/contrib/epee/include/net/levin_protocol_handler_async.h @@ -818,7 +818,7 @@ void async_protocol_handler_config::delete_connections(siz { auto i = connections.end() - 1; async_protocol_handler *conn = m_connects.at(*i); - del_connection(conn); + m_connects.erase(*i); conn->close(); connections.erase(i); }