From 12523c4c4ad05a845cfc46b4f0636a50e06a56bc Mon Sep 17 00:00:00 2001 From: Power2All Date: Tue, 12 Apr 2022 13:06:33 +0200 Subject: [PATCH] Bypassing a error --- src/tracker.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tracker.rs b/src/tracker.rs index a1e172690..43dd3b00f 100644 --- a/src/tracker.rs +++ b/src/tracker.rs @@ -202,7 +202,9 @@ impl TorrentEntry { } AnnounceEvent::Stopped => { if peer_old.is_seeder() { - self.seeders -= 1; + if self.seeders != 0 { + self.seeders -= 1; + } } } // impossible, started should be the first time a peer announces itself