mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Reorder if conditions slightly
This commit is contained in:
parent
8d26a221e0
commit
74e52746b1
1 changed files with 6 additions and 2 deletions
|
@ -2377,9 +2377,13 @@ void Session::generateResumeData(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…
Add table
Add a link
Reference in a new issue