]> granicus.if.org Git - transmission/commitdiff
(trunk libT) in tr_torrentCheckSeedRadio(), make sure to check & see if the torrent...
authorCharles Kerr <charles@transmissionbt.com>
Mon, 2 Mar 2009 03:18:03 +0000 (03:18 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Mon, 2 Mar 2009 03:18:03 +0000 (03:18 +0000)
libtransmission/torrent.c

index 4ad927e28f5bf63d25a057558f7a8880b7693232..bd7bf49332a02d8392f667438becc18d2efaab5d 100644 (file)
@@ -2135,7 +2135,7 @@ tr_torrentCheckSeedRatio( tr_torrent * tor )
     assert( tr_isTorrent( tor ) );
 
     /* if we're seeding and we've reached our seed ratio limit, stop the torrent */
-    if( tr_torrentIsSeed( tor ) && tr_torrentGetSeedRatio( tor, &seedRatio ) )
+    if( tor->isRunning && tr_torrentIsSeed( tor ) && tr_torrentGetSeedRatio( tor, &seedRatio ) )
     {
         const uint64_t up = tor->uploadedCur + tor->uploadedPrev;
         uint64_t down = tor->downloadedCur + tor->downloadedPrev;