Browse Source

Treat errored torrents as finished

adaptive-webui-19844
dyumin 4 years ago
parent
commit
12d396ffc5
  1. 2
      src/base/bittorrent/session.cpp

2
src/base/bittorrent/session.cpp

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

Loading…
Cancel
Save