fix: decrease torrent seeders/leechers when a peer is marked inactive

This commit is contained in:
Roardom
2023-09-09 21:13:00 +00:00
parent 97c44d10e6
commit e62d342cb3
4 changed files with 11 additions and 3 deletions
@@ -755,6 +755,7 @@ class AnnounceController extends Controller
// Torrent updates
$isNewPeer = $isNewPeer || ! $peer->active;
$isDeadPeer = $event === 'stopped';
$isSeeder = $queries['left'] == 0;