From 4290927563d31dcd920d66df18c2c72dc521e7a4 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 10 Oct 2009 20:46:24 +0000 Subject: [PATCH] retain previous announce/scrape info when a tracker becomes a backup --- libtransmission/announcer.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libtransmission/announcer.c b/libtransmission/announcer.c index 122e19da7..09b6825b0 100644 --- a/libtransmission/announcer.c +++ b/libtransmission/announcer.c @@ -1667,23 +1667,10 @@ tr_announcerStats( const tr_torrent * torrent, if( st->isBackup ) { - st->hasScraped = FALSE; - st->lastScrapeTime = 0; - st->lastScrapeSucceeded = FALSE; - st->lastScrapeResult[0] = '\0'; st->scrapeState = TR_TRACKER_INACTIVE; st->announceState = TR_TRACKER_INACTIVE; st->nextScrapeTime = 0; - st->lastAnnounceStartTime = 0; - st->hasAnnounced = 0; - st->lastAnnounceTime = 0; - st->lastAnnounceResult[0] = '\0'; - st->lastAnnounceSucceeded = FALSE; - st->lastAnnouncePeerCount = 0; st->nextAnnounceTime = 0; - st->seederCount = 0; - st->leecherCount = 0; - st->downloadCount = 0; } else {