mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-24 18:26:11 +03:00
Merge pull request #9265 from glassez/dont-save-paused
Never save resume data for already paused torrents
This commit is contained in:
commit
260b03de92
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue