From: Charles Kerr Date: Thu, 18 Sep 2008 16:18:50 +0000 (+0000) Subject: (libT) apply a line from #1181's fix that was accidentally applied to the 1.3x branch... X-Git-Tag: 1.40~297 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85edfe35d59c1c56b752ee3e0c4d75f00857cab6;p=transmission (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. --- diff --git a/libtransmission/tracker.c b/libtransmission/tracker.c index cf4f44724..0f8ae2977 100644 --- a/libtransmission/tracker.c +++ b/libtransmission/tracker.c @@ -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;