mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
Reorder resume data saving conditionals
Having conditionals which can break saving of torrent resume data in order from more likely to less likely is more effective.
This commit is contained in:
committed by
sledgehammer999
parent
8e5743380a
commit
a932cd2ec1
@@ -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()) continue;
|
||||
if (!final && !torrent->needSaveResumeData()) continue;
|
||||
if (torrent->hasMissingFiles() || torrent->hasError()) continue;
|
||||
|
||||
saveTorrentResumeData(torrent, final);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user