connection_queue::close() fix
This commit is contained in:
@@ -123,10 +123,11 @@ namespace libtorrent
|
|||||||
{
|
{
|
||||||
// we don't want to call the timeout callback while we're locked
|
// we don't want to call the timeout callback while we're locked
|
||||||
// since that is a recepie for dead-locks
|
// since that is a recepie for dead-locks
|
||||||
l.unlock();
|
entry e = m_queue.front();
|
||||||
try { m_queue.front().on_timeout(); } catch (std::exception&) {}
|
|
||||||
l.lock();
|
|
||||||
m_queue.pop_front();
|
m_queue.pop_front();
|
||||||
|
l.unlock();
|
||||||
|
try { e.on_timeout(); } catch (std::exception&) {}
|
||||||
|
l.lock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user