mirror of
https://github.com/LBRYFoundation/tracker.git
synced 2025-09-14 22:49:51 +00:00
parent
18e1599759
commit
3532f39690
1 changed files with 1 additions and 0 deletions
|
@ -191,6 +191,7 @@ func (s *Storage) PurgeInactiveTorrent(infohash string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if torrent.PeerCount() == 0 {
|
if torrent.PeerCount() == 0 {
|
||||||
|
atomic.AddInt32(&s.size, -1)
|
||||||
delete(shard.torrents, infohash)
|
delete(shard.torrents, infohash)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue