fixed race condition when a torrent is removed while one of the connections is still in the connection queue
This commit is contained in:
@@ -2334,7 +2334,13 @@ namespace libtorrent
|
|||||||
ptime now(time_now());
|
ptime now(time_now());
|
||||||
|
|
||||||
boost::shared_ptr<torrent> t = m_torrent.lock();
|
boost::shared_ptr<torrent> t = m_torrent.lock();
|
||||||
TORRENT_ASSERT(t);
|
if (!t || m_disconnecting)
|
||||||
|
{
|
||||||
|
m_ses.m_half_open.done(m_connection_ticket);
|
||||||
|
m_connecting = false;
|
||||||
|
disconnect();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
on_tick();
|
on_tick();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user