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 {
|
||||
atomic.AddInt32(&s.size, -1)
|
||||
delete(shard.torrents, infohash)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue