aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/net/levin_protocol_handler_async.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-03-12 15:36:18 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-03-12 15:36:18 +0000
commite98b26a87eff42d9bfcbf922e1eb9054d9fab39e (patch)
treeba8323ae58ac3eecb8d305276078a2673127c2ff /contrib/epee/include/net/levin_protocol_handler_async.h
parentMerge pull request #712 (diff)
downloadmonero-e98b26a87eff42d9bfcbf922e1eb9054d9fab39e.tar.xz
epee: fix bug deleting more than one connection at once
Diffstat (limited to 'contrib/epee/include/net/levin_protocol_handler_async.h')
-rw-r--r--contrib/epee/include/net/levin_protocol_handler_async.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/epee/include/net/levin_protocol_handler_async.h b/contrib/epee/include/net/levin_protocol_handler_async.h
index 7331faa35..be231a7e1 100644
--- a/contrib/epee/include/net/levin_protocol_handler_async.h
+++ b/contrib/epee/include/net/levin_protocol_handler_async.h
@@ -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;
}