mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 13:58:51 +03:00
Don't count paused torrents for the autoshutdown. Closes #1280.
This commit is contained in:
parent
a92148424f
commit
ceba1dc734
1 changed files with 3 additions and 2 deletions
|
@ -730,8 +730,9 @@ bool QBtSession::hasDownloadingTorrents() const {
|
|||
for ( ; torrentIT != torrentITend; ++torrentIT) {
|
||||
if (torrentIT->is_valid()) {
|
||||
try {
|
||||
const torrent_status::state_t state = torrentIT->status().state;
|
||||
if (state != torrent_status::finished && state != torrent_status::seeding)
|
||||
const torrent_status status = torrentIT->status();
|
||||
if (status.state != torrent_status::finished && status.state != torrent_status::seeding
|
||||
&& !status.paused)
|
||||
return true;
|
||||
} catch(std::exception) {}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue