fix load in memory cache

This commit is contained in:
YouROK
2021-05-25 09:02:27 +03:00
parent 03e2fd9e1f
commit 266ce9924d

View File

@@ -271,7 +271,7 @@ func (c *Cache) isIdInFileBE(ranges []Range, id int) bool {
// run only in cache on disk // run only in cache on disk
func (c *Cache) LoadPiecesOnDisk() { func (c *Cache) LoadPiecesOnDisk() {
if c.torrent == nil { if c.torrent == nil || !settings.BTsets.UseDisk {
return return
} }