From 266ce9924dadfd1bf8582992c3f4f7cefaea5216 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Tue, 25 May 2021 09:02:27 +0300 Subject: [PATCH] fix load in memory cache --- server/torr/storage/torrstor/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/torr/storage/torrstor/cache.go b/server/torr/storage/torrstor/cache.go index 2719498..3a38bc2 100644 --- a/server/torr/storage/torrstor/cache.go +++ b/server/torr/storage/torrstor/cache.go @@ -271,7 +271,7 @@ func (c *Cache) isIdInFileBE(ranges []Range, id int) bool { // run only in cache on disk func (c *Cache) LoadPiecesOnDisk() { - if c.torrent == nil { + if c.torrent == nil || !settings.BTsets.UseDisk { return }