mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +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:
parent
9423821e7a
commit
f071f0ccea
1 changed files with 2 additions and 3 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue