mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-26 13:09:10 -05:00
fix: decrease torrent seeders/leechers when a peer is marked inactive
This commit is contained in:
@@ -755,6 +755,7 @@ class AnnounceController extends Controller
|
||||
|
||||
// Torrent updates
|
||||
|
||||
$isNewPeer = $isNewPeer || ! $peer->active;
|
||||
$isDeadPeer = $event === 'stopped';
|
||||
$isSeeder = $queries['left'] == 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user