epee: fix bug deleting more than one connection at once

This commit is contained in:
moneromooo-monero 2016-03-12 15:36:18 +00:00
parent dfd0e9c97d
commit e98b26a87e
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 1 additions and 0 deletions

View File

@ -695,6 +695,7 @@ void async_protocol_handler_config<t_connection_context>::del_out_connections(si
{
close(*out_connections.begin());
del_connection(m_connects.at(*out_connections.begin()));
out_connections.erase(out_connections.begin());
--count;
}