(libT) apply a line from #1181's fix that was accidentally applied to the 1.3x branch instead of trunk. both are in sync now wrt #1181.

This commit is contained in:
Charles Kerr 2008-09-18 16:18:50 +00:00
parent 27e0beb6e3
commit 85edfe35d5
1 changed files with 2 additions and 1 deletions

View File

@ -404,7 +404,8 @@ onTrackerResponse( tr_session * session,
const int interval = t->announceIntervalSec + t->randOffset;
const time_t now = time ( NULL );
dbgmsg( t->name, "request succeeded. reannouncing in %d seconds", interval );
t->scrapeAt = now + t->scrapeIntervalSec + t->randOffset;
if( t->scrapeAt <= now )
t->scrapeAt = now + t->scrapeIntervalSec + t->randOffset;
t->reannounceAt = now + interval;
t->manualAnnounceAllowedAt = now + t->announceMinIntervalSec;