mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Don't put finished torrents in seed_mode.
Seed mode has special function in libtorrent. It is used to skip hash checking when adding a torrent and consider it complete.
This commit is contained in:
parent
f7c8a499d5
commit
bfd30dcabc
3 changed files with 5 additions and 2 deletions
|
@ -1088,7 +1088,7 @@ bool Session::addTorrent_impl(const AddTorrentData &addData, const MagnetUri &ma
|
|||
|
||||
// Seeding mode
|
||||
// Skip checking and directly start seeding (new in libtorrent v0.15)
|
||||
if (addData.hasSeedStatus)
|
||||
if (addData.skipChecking)
|
||||
p.flags |= libt::add_torrent_params::flag_seed_mode;
|
||||
else
|
||||
p.flags &= ~libt::add_torrent_params::flag_seed_mode;
|
||||
|
@ -2363,6 +2363,7 @@ bool loadTorrentResumeData(const QByteArray &data, AddTorrentData &out, MagnetUr
|
|||
{
|
||||
out = AddTorrentData();
|
||||
out.resumed = true;
|
||||
out.skipChecking = false;
|
||||
|
||||
libt::lazy_entry fast;
|
||||
libt::error_code ec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue