remove close engine reader

This commit is contained in:
YouROK
2021-08-19 08:20:31 +03:00
parent 83d002560b
commit 399912c87c

View File

@@ -113,9 +113,9 @@ func (r *Reader) Close() {
// file reader close in gotorrent // file reader close in gotorrent
// this struct close in cache // this struct close in cache
r.isClosed = true r.isClosed = true
if len(r.file.Torrent().Files()) > 0 { // if len(r.file.Torrent().Files()) > 0 {
r.Reader.Close() // r.Reader.Close()
} // }
go r.cache.getRemPieces() go r.cache.getRemPieces()
} }