forked from premiere/premiere-libtorrent
fix for connection_queue::close() to maintain the correct m_num_connecting counter
This commit is contained in:
parent
44e9ff70de
commit
593af53aba
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue