mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
tr_torrentIsStalled(): return false if that torrent's queue is disabled.
This commit is contained in:
parent
974034be81
commit
d8a11a33f1
1 changed files with 2 additions and 1 deletions
|
@ -1141,7 +1141,8 @@ torrentGetIdleSecs( const tr_torrent * tor )
|
|||
bool
|
||||
tr_torrentIsStalled( const tr_torrent * tor )
|
||||
{
|
||||
return torrentGetIdleSecs( tor ) > ( tr_sessionGetQueueStalledMinutes( tor->session ) * 60 );
|
||||
return tr_sessionGetQueueEnabled( tor->session, tr_torrentGetQueueDirection( tor ) )
|
||||
&& ( torrentGetIdleSecs( tor ) > ( tr_sessionGetQueueStalledMinutes( tor->session ) * 60 ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue