From 80125a2f773d208005cfbb03def39fb58aa6806e Mon Sep 17 00:00:00 2001 From: anon Date: Fri, 19 Feb 2021 22:27:29 +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 635876589..f6b73a2d5 100644 --- a/contrib/epee/include/net/levin_protocol_handler_async.h +++ b/contrib/epee/include/net/levin_protocol_handler_async.h @@ -787,7 +787,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); }