async_protocol_handler_config: remove connection correctly

This commit is contained in:
anon 2021-02-19 22:27:29 +00:00
parent 1b51d398fb
commit 80125a2f77
No known key found for this signature in database
GPG key ID: D3857C17AA7F968B

View file

@ -787,7 +787,7 @@ void async_protocol_handler_config<t_connection_context>::delete_connections(siz
{ {
auto i = connections.end() - 1; auto i = connections.end() - 1;
async_protocol_handler<t_connection_context> *conn = m_connects.at(*i); async_protocol_handler<t_connection_context> *conn = m_connects.at(*i);
del_connection(conn); m_connects.erase(*i);
conn->close(); conn->close();
connections.erase(i); connections.erase(i);
} }