From 5f4b217bf17d79d9fa1164baa740ced918bfd2c5 Mon Sep 17 00:00:00 2001 From: nikk gitanes Date: Fri, 20 Aug 2021 04:00:19 +0300 Subject: [PATCH] revert close reader without it there will be endless reloads at start from preload readers on play --- 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 8bdd1db..c3113b3 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() }