mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
udp: fix bug in TorrentData num_seeders/num_leechers updates
This commit is contained in:
parent
fbc69daa9d
commit
e9f83403ba
1 changed files with 2 additions and 2 deletions
|
|
@ -83,10 +83,10 @@ impl<I: Ip> TorrentData<I> {
|
|||
|
||||
match opt_removed_peer.map(|peer| peer.is_seeder) {
|
||||
Some(true) => {
|
||||
self.num_leechers -= 1;
|
||||
self.num_seeders -= 1;
|
||||
}
|
||||
Some(false) => {
|
||||
self.num_seeders -= 1;
|
||||
self.num_leechers -= 1;
|
||||
}
|
||||
None => {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue