1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

(trunk libT) another announcer tweak related to #2828 -- keep the last known good value of lastAnnouncePeerCount even if subsequent announces fail

This commit is contained in:
Charles Kerr 2010-02-01 00:35:38 +00:00
parent 9423821e7a
commit f071f0ccea

View file

@ -1795,9 +1795,8 @@ tr_announcerStats( const tr_torrent * torrent,
if(( st->hasAnnounced = tier->lastAnnounceTime != 0 )) {
st->lastAnnounceTime = tier->lastAnnounceTime;
tr_strlcpy( st->lastAnnounceResult, tier->lastAnnounceStr, sizeof( st->lastAnnounceResult ) );
if(( st->lastAnnounceSucceeded = tier->lastAnnounceSucceeded )) {
st->lastAnnouncePeerCount = tier->lastAnnouncePeerCount;
}
st->lastAnnounceSucceeded = tier->lastAnnounceSucceeded;
st->lastAnnouncePeerCount = tier->lastAnnouncePeerCount;
}
if( tier->isAnnouncing )