]> granicus.if.org Git - transmission/commitdiff
tr_torrentIsStalled(): return false if that torrent's queue is disabled.
authorJordan Lee <jordan@transmissionbt.com>
Thu, 4 Aug 2011 02:25:38 +0000 (02:25 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Thu, 4 Aug 2011 02:25:38 +0000 (02:25 +0000)
libtransmission/torrent.c

index 45023051d84f720a6dfe9c623b42284266f4bd29..c7db512a55daaee97ee178cf9a97abaa0dcd408c 100644 (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 ) );
 }