(trunk libT) #2828 "Better reporting of announce timeouts in tr_tracker_stat" -- implemented in trunk for 1.90

This commit is contained in:
Charles Kerr 2010-02-01 00:28:04 +00:00
parent b5842c49f0
commit 9423821e7a
1 changed files with 2 additions and 3 deletions

View File

@ -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 )