1
0
Fork 0
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:
Jordan Lee 2011-08-04 02:25:38 +00:00
parent 974034be81
commit d8a11a33f1

View file

@ -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 ) );
}