mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
async_protocol_handler_config: remove connection correctly
This commit is contained in:
parent
c1776be54f
commit
7fd140e4f7
1 changed files with 1 additions and 1 deletions
|
@ -818,7 +818,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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue