Treat errored torrents as finished

This commit is contained in:
dyumin 2021-01-28 22:09:15 +03:00 committed by sledgehammer999
parent 789c6de2e8
commit a454a0303d
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

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