Browse Source

Do not inhibit system sleep/auto shutdown for torrents stuck at downloading metadata

PR #17481.
adaptive-webui-19844
summer 2 years ago committed by GitHub
parent
commit
54b50c3a8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/base/bittorrent/session.cpp

2
src/base/bittorrent/session.cpp

@ -2134,7 +2134,7 @@ bool Session::hasUnfinishedTorrents() const
{ {
return std::any_of(m_torrents.begin(), m_torrents.end(), [](const TorrentImpl *torrent) return std::any_of(m_torrents.begin(), m_torrents.end(), [](const TorrentImpl *torrent)
{ {
return (!torrent->isSeed() && !torrent->isPaused() && !torrent->isErrored()); return (!torrent->isSeed() && !torrent->isPaused() && !torrent->isErrored() && torrent->hasMetadata());
}); });
} }

Loading…
Cancel
Save