From 6f994f6708cb4f233966d6ca859562a4e9dc5a31 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 2 Mar 2009 03:18:03 +0000 Subject: [PATCH] (trunk libT) in tr_torrentCheckSeedRadio(), make sure to check & see if the torrent is running ;) --- libtransmission/torrent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 4ad927e28..bd7bf4933 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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;