Browse Source

Reorder if conditions slightly

adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
a64f3bbc6a
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 8
      src/base/bittorrent/session.cpp

8
src/base/bittorrent/session.cpp

@ -2131,9 +2131,13 @@ void Session::generateResumeData(const bool final) @@ -2131,9 +2131,13 @@ void Session::generateResumeData(const bool final)
{
for (TorrentHandle *const torrent : asConst(m_torrents)) {
if (!torrent->isValid()) continue;
if (torrent->isChecking() || torrent->isPaused()) continue;
if (!final && !torrent->needSaveResumeData()) continue;
if (torrent->hasMissingFiles() || torrent->hasError()) continue;
if (torrent->isChecking()
|| torrent->isPaused()
|| torrent->hasError()
|| torrent->hasMissingFiles())
continue;
saveTorrentResumeData(torrent);
}

Loading…
Cancel
Save