aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authoranon <anon [at] nowhere>2021-02-19 22:27:29 +0000
committeranon <anon [at] nowhere>2021-02-19 22:27:29 +0000
commit80125a2f773d208005cfbb03def39fb58aa6806e (patch)
treef0dfd3837e419907764e76d5ede83b99abbbd6ad /contrib
parentasync_protocol_handler_config: add segfault demo (diff)
downloadmonero-80125a2f773d208005cfbb03def39fb58aa6806e.tar.xz
async_protocol_handler_config: remove connection correctly
Diffstat (limited to 'contrib')
-rw-r--r--contrib/epee/include/net/levin_protocol_handler_async.h2
1 files changed, 1 insertions, 1 deletions
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<t_connection_context>::delete_connections(siz
{
auto i = connections.end() - 1;
async_protocol_handler<t_connection_context> *conn = m_connects.at(*i);
- del_connection(conn);
+ m_connects.erase(*i);
conn->close();
connections.erase(i);
}