From 9423821e7a483eec53477d542a5a16e8f135f80b Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 1 Feb 2010 00:28:04 +0000 Subject: [PATCH] (trunk libT) #2828 "Better reporting of announce timeouts in tr_tracker_stat" -- implemented in trunk for 1.90 --- libtransmission/announcer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libtransmission/announcer.c b/libtransmission/announcer.c index f081f4983..cca96cd36 100644 --- a/libtransmission/announcer.c +++ b/libtransmission/announcer.c @@ -1219,9 +1219,10 @@ onAnnounceDone( tr_session * session, host->lastResponseInterval = now - data->timeSent; } + tier->lastAnnounceTime = now; + if( responseCode == HTTP_OK ) { - tier->lastAnnounceTime = now; success = parseAnnounceResponse( tier, response, responseLen, &gotScrape ); dbgmsg( tier, "success is %d", success ); } @@ -1237,8 +1238,6 @@ onAnnounceDone( tr_session * session, tr_strlcpy( tier->lastAnnounceStr, buf, sizeof( tier->lastAnnounceStr ) ); - tier->lastAnnounceTime = now; - /* if the response is serious, *and* if the response may require * human intervention, then notify the user... otherwise just log it */ if( responseCode >= 400 ) -- 2.40.0