potentially cured the symptoms of a bug where a torrent can be destructed without having all its connections closed first
This commit is contained in:
parent
7d5285610c
commit
0ae3b24bd2
|
@ -344,6 +344,11 @@ namespace libtorrent
|
|||
torrent::~torrent()
|
||||
{
|
||||
assert(m_connections.empty());
|
||||
if (!m_connections.empty())
|
||||
{
|
||||
disconnect_all();
|
||||
m_ses.purge_connections();
|
||||
}
|
||||
if (m_ses.m_abort) m_abort = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue