diff --git a/server/torr/storage/torrstor/cache.go b/server/torr/storage/torrstor/cache.go index c82d01c..3824c5a 100644 --- a/server/torr/storage/torrstor/cache.go +++ b/server/torr/storage/torrstor/cache.go @@ -90,11 +90,11 @@ func (c *Cache) Piece(m metainfo.Piece) storage.PieceImpl { func (c *Cache) Close() error { log.TLogln("Close cache for:", c.hash) delete(c.storage.caches, c.hash) - for _, v := range c.pieces { - if v.dPiece != nil { - os.Remove(v.dPiece.name) - } - } + //for _, v := range c.pieces { + // if v.dPiece != nil { + // os.Remove(v.dPiece.name) + // } + //} c.pieces = nil c.muReaders.Lock()