mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
finish #2463
This commit is contained in:
parent
b7677f7059
commit
2730f9ac9c
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue