mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
remove readers close, it remove torrent, fix deadlock
This commit is contained in:
@@ -83,9 +83,6 @@ func (c *Cache) Close() error {
|
|||||||
c.bufferPull = nil
|
c.bufferPull = nil
|
||||||
|
|
||||||
c.muReaders.Lock()
|
c.muReaders.Lock()
|
||||||
for reader, _ := range c.readers {
|
|
||||||
reader.Close()
|
|
||||||
}
|
|
||||||
c.readers = nil
|
c.readers = nil
|
||||||
c.muReaders.Unlock()
|
c.muReaders.Unlock()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user