mirror of
https://github.com/transmission/transmission
synced 2025-01-03 05:25:52 +00:00
fix: publish 'leechers' iff it was in tracker response (#5164)
This commit is contained in:
parent
b2b0f0db39
commit
56c1bb2a9e
1 changed files with 5 additions and 1 deletions
|
@ -1099,7 +1099,11 @@ void tr_announcer_impl::onAnnounceDone(
|
|||
publishPeersPex(tier, seeders, leechers, response.pex6);
|
||||
}
|
||||
|
||||
/* Only publish leechers if it was actually returned during the announce */
|
||||
if (response.leechers >= 0)
|
||||
{
|
||||
publishPeerCounts(tier, seeders, leechers);
|
||||
}
|
||||
|
||||
tier->isRunning = is_running_on_success;
|
||||
|
||||
|
|
Loading…
Reference in a new issue