From 2730f9ac9c8b778c795debd05534fcee5fe48fe2 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 10 Oct 2009 20:25:05 +0000 Subject: [PATCH] finish #2463 --- libtransmission/announcer.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libtransmission/announcer.c b/libtransmission/announcer.c index 051444a3f..122e19da7 100644 --- a/libtransmission/announcer.c +++ b/libtransmission/announcer.c @@ -1696,7 +1696,10 @@ tr_announcerStats( const tr_torrent * torrent, if( tier->isScraping ) st->scrapeState = TR_TRACKER_ACTIVE; else if( tier->scrapeAt > now ) + { st->scrapeState = TR_TRACKER_WAITING; + st->nextScrapeTime = tier->scrapeAt; + } else st->scrapeState = TR_TRACKER_QUEUED; @@ -1715,7 +1718,10 @@ tr_announcerStats( const tr_torrent * torrent, else if( !torrent->isRunning ) st->announceState = TR_TRACKER_INACTIVE; else if( tier->announceAt > now ) + { st->announceState = TR_TRACKER_WAITING; + st->nextAnnounceTime = tier->announceAt; + } else st->announceState = TR_TRACKER_QUEUED;