From 85edfe35d59c1c56b752ee3e0c4d75f00857cab6 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 18 Sep 2008 16:18:50 +0000 Subject: [PATCH] (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. --- libtransmission/tracker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.40.0