diff --git a/server/torr/storage/torrstor/cache.go b/server/torr/storage/torrstor/cache.go index d638705..566476f 100644 --- a/server/torr/storage/torrstor/cache.go +++ b/server/torr/storage/torrstor/cache.go @@ -173,6 +173,9 @@ func (c *Cache) cleanPieces() { break } } + if rems <= 0 { + utils.FreeOSMemGC() + } } }