ignore paused and automanaged from metadata for magnet links
This commit is contained in:
parent
af5c7e3d04
commit
45cd9fe407
|
@ -94,6 +94,7 @@
|
||||||
reduces waste download, specifically when streaming
|
reduces waste download, specifically when streaming
|
||||||
* added support for storing per-peer rate limits across reconnects
|
* added support for storing per-peer rate limits across reconnects
|
||||||
* improved fallocate support
|
* improved fallocate support
|
||||||
|
* fixed magnet link issue when using resume data
|
||||||
|
|
||||||
* disabled feature to drop requests after having been skipped too many times
|
* disabled feature to drop requests after having been skipped too many times
|
||||||
* fixed range request bug for files larger than 2 GB in web seeds
|
* fixed range request bug for files larger than 2 GB in web seeds
|
||||||
|
|
|
@ -4123,6 +4123,13 @@ namespace libtorrent
|
||||||
get_handle()));
|
get_handle()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this makes the resume data "paused" and
|
||||||
|
// "auto_managed" fields be ignored. If the paused
|
||||||
|
// field is not ignored, the invariant check will fail
|
||||||
|
// since we will be paused but without having disconnected
|
||||||
|
// any of the peers.
|
||||||
|
m_override_resume_data = true;
|
||||||
|
|
||||||
init();
|
init();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -4226,10 +4233,7 @@ namespace libtorrent
|
||||||
TORRENT_ASSERT(p->associated_torrent().lock().get() == this);
|
TORRENT_ASSERT(p->associated_torrent().lock().get() == this);
|
||||||
|
|
||||||
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING
|
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING
|
||||||
if (m_abort)
|
(*p->m_logger) << "*** CLOSING CONNECTION: " << ec.message() << "\n";
|
||||||
(*p->m_logger) << "*** CLOSING CONNECTION 'aborting'\n";
|
|
||||||
else
|
|
||||||
(*p->m_logger) << "*** CLOSING CONNECTION 'pausing'\n";
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef TORRENT_DEBUG
|
#ifdef TORRENT_DEBUG
|
||||||
std::size_t size = m_connections.size();
|
std::size_t size = m_connections.size();
|
||||||
|
|
Loading…
Reference in New Issue