Changeset 12621


Ignore:
Timestamp:
Aug 4, 2011, 2:25:38 AM (10 years ago)
Author:
jordan
Message:

tr_torrentIsStalled(): return false if that torrent's queue is disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r12617 r12621  
    11421142tr_torrentIsStalled( const tr_torrent * tor )
    11431143{
    1144     return torrentGetIdleSecs( tor ) > ( tr_sessionGetQueueStalledMinutes( tor->session ) * 60 );
     1144    return tr_sessionGetQueueEnabled( tor->session, tr_torrentGetQueueDirection( tor ) )
     1145       && ( torrentGetIdleSecs( tor ) > ( tr_sessionGetQueueStalledMinutes( tor->session ) * 60 ) );
    11451146}
    11461147
Note: See TracChangeset for help on using the changeset viewer.