mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08:00
Reorder if conditions slightly
This commit is contained in:
parent
9893a415c0
commit
a64f3bbc6a
@ -2131,9 +2131,13 @@ void Session::generateResumeData(const bool final)
|
|||||||
{
|
{
|
||||||
for (TorrentHandle *const torrent : asConst(m_torrents)) {
|
for (TorrentHandle *const torrent : asConst(m_torrents)) {
|
||||||
if (!torrent->isValid()) continue;
|
if (!torrent->isValid()) continue;
|
||||||
if (torrent->isChecking() || torrent->isPaused()) continue;
|
|
||||||
if (!final && !torrent->needSaveResumeData()) continue;
|
if (!final && !torrent->needSaveResumeData()) continue;
|
||||||
if (torrent->hasMissingFiles() || torrent->hasError()) continue;
|
if (torrent->isChecking()
|
||||||
|
|| torrent->isPaused()
|
||||||
|
|| torrent->hasError()
|
||||||
|
|| torrent->hasMissingFiles())
|
||||||
|
continue;
|
||||||
|
|
||||||
saveTorrentResumeData(torrent);
|
saveTorrentResumeData(torrent);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user