tr_torrentIsStalled(): return false if that torrent's queue is disabled.
This commit is contained in:
parent
974034be81
commit
d8a11a33f1
|
@ -1141,7 +1141,8 @@ torrentGetIdleSecs( const tr_torrent * tor )
|
||||||
bool
|
bool
|
||||||
tr_torrentIsStalled( const tr_torrent * tor )
|
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 New Issue