]> granicus.if.org Git - transmission/commitdiff
(trunk libT) #1869 "new status for torrents that reached the seed ratio" -- use sugge...
authorCharles Kerr <charles@transmissionbt.com>
Sat, 15 May 2010 22:26:25 +0000 (22:26 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Sat, 15 May 2010 22:26:25 +0000 (22:26 +0000)
libtransmission/torrent.c

index 67a47739e6e406fac32a299b4d00b8bf33694f35..78dad937e743c04a89d855c7a5bcca66d2bdb958 100644 (file)
@@ -1101,7 +1101,9 @@ tr_torrentStat( tr_torrent * tor )
             break;
     }
 
-    s->finished = seedRatioApplies && !seedRatioBytesLeft;
+    /* s->haveValid is here to make sure a torrent isn't marked 'finished'
+     * when the user hits "uncheck all" prior to starting the torrent... */
+    s->finished = seedRatioApplies && !seedRatioBytesLeft && s->haveValid;
 
     if( !seedRatioApplies || s->finished )
         s->seedRatioPercentDone = 1;