]> granicus.if.org Git - transmission/commitdiff
(libT) apply a line from #1181's fix that was accidentally applied to the 1.3x branch...
authorCharles Kerr <charles@transmissionbt.com>
Thu, 18 Sep 2008 16:18:50 +0000 (16:18 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Thu, 18 Sep 2008 16:18:50 +0000 (16:18 +0000)
libtransmission/tracker.c

index cf4f44724852ac3276bf4a671a3ce34ba2f62a25..0f8ae2977bb2ae8dc5d6d3dc43537dd383ee9082 100644 (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;