From 2a41dc04530e4337a04cee9efc119b82c9ec325e Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 19 Aug 2019 16:37:22 +0000 Subject: epee: fix connections not being properly closed in some instances Fixed by Fixed by crCr62U0 --- contrib/epee/include/net/levin_protocol_handler_async.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/epee') diff --git a/contrib/epee/include/net/levin_protocol_handler_async.h b/contrib/epee/include/net/levin_protocol_handler_async.h index 8d7ffb2c2..0a04dba4e 100644 --- a/contrib/epee/include/net/levin_protocol_handler_async.h +++ b/contrib/epee/include/net/levin_protocol_handler_async.h @@ -782,7 +782,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); - close(*i); + conn->close(); connections.erase(i); } catch (const std::out_of_range &e) -- cgit v1.2.3