1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-03-10 12:21:12 +00:00

Treat errored torrents as finished

This commit is contained in:
dyumin 2021-01-28 22:09:15 +03:00
parent 53f29613c2
commit 12d396ffc5

View File

@ -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());
}); });
} }