mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Do not inhibit system sleep/auto shutdown for torrents stuck at downloading metadata
PR #17481.
This commit is contained in:
parent
fa3d98aa37
commit
54b50c3a8a
1 changed files with 1 additions and 1 deletions
|
@ -2134,7 +2134,7 @@ bool Session::hasUnfinishedTorrents() const
|
|||
{
|
||||
return std::any_of(m_torrents.begin(), m_torrents.end(), [](const TorrentImpl *torrent)
|
||||
{
|
||||
return (!torrent->isSeed() && !torrent->isPaused() && !torrent->isErrored());
|
||||
return (!torrent->isSeed() && !torrent->isPaused() && !torrent->isErrored() && torrent->hasMetadata());
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue