forked from premiere/premiere-libtorrent
disconnect redundant fix
This commit is contained in:
parent
78a6df0b2a
commit
5d76c19168
|
@ -1577,7 +1577,8 @@ namespace libtorrent
|
|||
if (!m_ses.settings().close_redundant_connections) return;
|
||||
|
||||
boost::shared_ptr<torrent> t = m_torrent.lock();
|
||||
TORRENT_ASSERT(t);
|
||||
if (!t) return;
|
||||
|
||||
if (m_upload_only && t->is_finished())
|
||||
{
|
||||
disconnect(error_code(errors::upload_upload_connection, libtorrent_category));
|
||||
|
|
Loading…
Reference in New Issue