aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-08-19 16:37:22 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-08-19 22:09:55 +0000
commit2a41dc04530e4337a04cee9efc119b82c9ec325e (patch)
tree0bbe4d46152b15875ec99b4a24fdd95c74740b8a /contrib
parentMerge pull request #5685 (diff)
downloadmonero-2a41dc04530e4337a04cee9efc119b82c9ec325e.tar.xz
epee: fix connections not being properly closed in some instances
Fixed by Fixed by crCr62U0
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 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<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);
- close(*i);
+ conn->close();
connections.erase(i);
}
catch (const std::out_of_range &e)