1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

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
This commit is contained in:
Vladimir Golovnev 2021-02-05 14:13:15 +03:00 committed by GitHub
commit ce482c20cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1764,7 +1764,7 @@ bool Session::hasUnfinishedTorrents() const
{
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());
});
}