diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-03-12 15:36:18 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-03-12 15:36:18 +0000 |
commit | e98b26a87eff42d9bfcbf922e1eb9054d9fab39e (patch) | |
tree | ba8323ae58ac3eecb8d305276078a2673127c2ff /contrib | |
parent | Merge pull request #712 (diff) | |
download | monero-e98b26a87eff42d9bfcbf922e1eb9054d9fab39e.tar.xz |
epee: fix bug deleting more than one connection at once
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/epee/include/net/levin_protocol_handler_async.h | 1 |
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; } |