mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08: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:
parent
fea7a96e68
commit
7716a27d0d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user