1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

(trunk libT) #2463 if at first you don't succeed...

This commit is contained in:
Charles Kerr 2009-10-10 20:14:26 +00:00
parent 6b452c1d07
commit b7677f7059

View file

@ -1695,12 +1695,10 @@ tr_announcerStats( const tr_torrent * torrent,
if( tier->isScraping )
st->scrapeState = TR_TRACKER_ACTIVE;
else if( tierNeedsToScrape( tier, now ) )
st->scrapeState = TR_TRACKER_QUEUED;
else {
else if( tier->scrapeAt > now )
st->scrapeState = TR_TRACKER_WAITING;
st->nextScrapeTime = tier->scrapeAt;
}
else
st->scrapeState = TR_TRACKER_QUEUED;
st->lastAnnounceStartTime = tier->lastAnnounceStartTime;
@ -1716,12 +1714,10 @@ tr_announcerStats( const tr_torrent * torrent,
st->announceState = TR_TRACKER_ACTIVE;
else if( !torrent->isRunning )
st->announceState = TR_TRACKER_INACTIVE;
else if( tierNeedsToAnnounce( tier, now ) )
st->announceState = TR_TRACKER_QUEUED;
else {
else if( tier->announceAt > now )
st->announceState = TR_TRACKER_WAITING;
st->nextAnnounceTime = tier->announceAt;
}
else
st->announceState = TR_TRACKER_QUEUED;
st->seederCount = tracker->seederCount;
st->leecherCount = tracker->leecherCount;