Browse Source

Merge pull request #9265 from glassez/dont-save-paused

Never save resume data for already paused torrents
adaptive-webui-19844
Vladimir Golovnev 6 years ago committed by GitHub
parent
commit
260b03de92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/base/bittorrent/session.cpp

4
src/base/bittorrent/session.cpp

@ -2350,9 +2350,9 @@ void Session::generateResumeData(bool final) @@ -2350,9 +2350,9 @@ void Session::generateResumeData(bool final)
{
foreach (TorrentHandle *const torrent, m_torrents) {
if (!torrent->isValid()) continue;
if (torrent->hasMissingFiles()) continue;
if (torrent->isChecking() || torrent->hasError()) continue;
if (torrent->isChecking() || torrent->isPaused()) continue;
if (!final && !torrent->needSaveResumeData()) continue;
if (torrent->hasMissingFiles() || torrent->hasError()) continue;
saveTorrentResumeData(torrent, final);
}

Loading…
Cancel
Save