fix for connection_queue::close() to maintain the correct m_num_connecting counter

This commit is contained in:
Arvid Norberg 2008-11-01 18:01:00 +00:00
parent 44e9ff70de
commit 593af53aba
1 changed files with 1 additions and 0 deletions

View File

@ -125,6 +125,7 @@ namespace libtorrent
// since that is a recepie for dead-locks
entry e = m_queue.front();
m_queue.pop_front();
if (e.connecting) --m_num_connecting;
l.unlock();
try { e.on_timeout(); } catch (std::exception&) {}
l.lock();