Merge pull request #3098

935e39c7 levin_protocol_handler_async: erase from back of vector instead of front (stoffu)
This commit is contained in:
Riccardo Spagni 2018-01-27 17:23:53 -08:00
commit baaeefdecc
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -752,7 +752,7 @@ void async_protocol_handler_config<t_connection_context>::del_out_connections(si
{ {
try try
{ {
auto i = out_connections.begin(); auto i = out_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); del_connection(conn);
close(*i); close(*i);