aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/net/levin_protocol_handler_async.h
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-09-04 09:40:21 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-09-04 09:40:21 -0500
commit1b93cb74bb351aea40140e60586bdb198695914d (patch)
treeb7b263d6aadafb773144b0ab84abab55bbdfdc5c /contrib/epee/include/net/levin_protocol_handler_async.h
parentMerge pull request #5822 (diff)
parentepee: fix connections not being properly closed in some instances (diff)
downloadmonero-1b93cb74bb351aea40140e60586bdb198695914d.tar.xz
Merge pull request #5824
2a41dc0 epee: fix connections not being properly closed in some instances (moneromooo-monero)
Diffstat (limited to 'contrib/epee/include/net/levin_protocol_handler_async.h')
-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 208911e1a..41f01e9a0 100644
--- a/contrib/epee/include/net/levin_protocol_handler_async.h
+++ b/contrib/epee/include/net/levin_protocol_handler_async.h
@@ -791,7 +791,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)