From 399912c87ca32c1b40d76ab3e5d771b38d2d0fe2 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Thu, 19 Aug 2021 08:20:31 +0300 Subject: [PATCH] remove close engine reader --- server/torr/storage/torrstor/reader.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/torr/storage/torrstor/reader.go b/server/torr/storage/torrstor/reader.go index 3d5e57e..76e6f2c 100644 --- a/server/torr/storage/torrstor/reader.go +++ b/server/torr/storage/torrstor/reader.go @@ -113,9 +113,9 @@ func (r *Reader) Close() { // file reader close in gotorrent // this struct close in cache r.isClosed = true - if len(r.file.Torrent().Files()) > 0 { - r.Reader.Close() - } + // if len(r.file.Torrent().Files()) > 0 { + // r.Reader.Close() + // } go r.cache.getRemPieces() }