From cfb2166a6d27b2aed784fef790c95e27734fb769 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Mon, 25 Oct 2021 17:58:07 +0300 Subject: [PATCH] fix cache size --- server/torr/storage/torrstor/reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/torr/storage/torrstor/reader.go b/server/torr/storage/torrstor/reader.go index 1870a22..73b085d 100644 --- a/server/torr/storage/torrstor/reader.go +++ b/server/torr/storage/torrstor/reader.go @@ -195,7 +195,7 @@ func (r *Reader) readerOff() { } func (r *Reader) getUseReaders() int { - readers := 1 + readers := 0 if r.cache != nil { for reader, _ := range r.cache.readers { if reader.isUse {