remove readers close, it remove torrent, fix deadlock

This commit is contained in:
YouROK
2020-12-17 13:14:58 +03:00
parent e211e4104a
commit 3124605e1e

View File

@@ -83,9 +83,6 @@ func (c *Cache) Close() error {
c.bufferPull = nil
c.muReaders.Lock()
for reader, _ := range c.readers {
reader.Close()
}
c.readers = nil
c.muReaders.Unlock()