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:
sledgehammer999 2015-10-25 01:39:40 +03:00
parent f7c8a499d5
commit bfd30dcabc
3 changed files with 5 additions and 2 deletions

View file

@ -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;