mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 00:06:16 -07: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:
commit
ce482c20cb
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue