diff options
author | anon <anon [at] nowhere> | 2021-02-19 22:27:29 +0000 |
---|---|---|
committer | anon <anon [at] nowhere> | 2021-02-19 22:27:29 +0000 |
commit | 80125a2f773d208005cfbb03def39fb58aa6806e (patch) | |
tree | f0dfd3837e419907764e76d5ede83b99abbbd6ad /contrib | |
parent | async_protocol_handler_config: add segfault demo (diff) | |
download | monero-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.h | 2 |
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); } |