Browse Source

Merge pull request #14307 from dyumin/let_system_sleep_if_there_are_errored_active_torrents

Don't inhibit system sleep if all active torrents are errored
adaptive-webui-19844
Vladimir Golovnev 4 years ago committed by GitHub
parent
commit
ce482c20cb
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

@ -1764,7 +1764,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()); return (!torrent->isSeed() && !torrent->isPaused() && !torrent->isErrored());
}); });
} }

Loading…
Cancel
Save