mirror of
https://github.com/greatest-ape/aquatic.git
synced 2026-10-23 01:41:20 +00:00
udp: fix bug in TorrentData num_seeders/num_leechers updates
This commit is contained in:
1 parent
fbc69daa9d
commit
e9f83403ba
1 file changed
+2
-2
@@ -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 => {}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user