mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-20 03:14:21 -07:00
@@ -191,6 +191,7 @@ func (s *Storage) PurgeInactiveTorrent(infohash string) error {
|
||||
}
|
||||
|
||||
if torrent.PeerCount() == 0 {
|
||||
atomic.AddInt32(&s.size, -1)
|
||||
delete(shard.torrents, infohash)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user