1
0
Fork 0
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:
reardonia 2023-03-06 10:22:40 -05:00 committed by GitHub
parent b2b0f0db39
commit 56c1bb2a9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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