disconnect all fix
This commit is contained in:
parent
127d3e6ad5
commit
4b3ba58ad2
|
@ -2261,7 +2261,10 @@ namespace libtorrent
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
std::size_t size = m_connections.size();
|
std::size_t size = m_connections.size();
|
||||||
#endif
|
#endif
|
||||||
p->disconnect(m_abort?"stopping torrent":"pausing torrent");
|
if (p->is_disconnecting())
|
||||||
|
m_connections.pop_front();
|
||||||
|
else
|
||||||
|
p->disconnect(m_abort?"stopping torrent":"pausing torrent");
|
||||||
TORRENT_ASSERT(m_connections.size() <= size);
|
TORRENT_ASSERT(m_connections.size() <= size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue