From 0be72ac2ba9e0ed4f524914a541cb4cd2d8d4501 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Thu, 17 Jun 2021 11:16:30 +0300 Subject: [PATCH] set torrent name if empty title --- server/torr/storage/torrstor/cache.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/torr/storage/torrstor/cache.go b/server/torr/storage/torrstor/cache.go index a2258d5..a480ca8 100644 --- a/server/torr/storage/torrstor/cache.go +++ b/server/torr/storage/torrstor/cache.go @@ -194,12 +194,10 @@ func (c *Cache) cleanPieces() { c.removePiece(p) rems-- if rems <= 0 { - break + utils.FreeOSMemGC() + return } } - if rems <= 0 { - utils.FreeOSMemGC() - } } }