From 1b44fecec902ee53319569db97525ae57f172bfb Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 15 May 2010 22:26:25 +0000 Subject: [PATCH] (trunk libT) #1869 "new status for torrents that reached the seed ratio" -- use suggestion from Longinus00 to ensure torrents don't get flagged as finished if the user hits "download none" in the "add torrent" dialog --- libtransmission/torrent.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 67a47739e..78dad937e 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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; -- 2.40.0