mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
disable close torrent on reading it
This commit is contained in:
@@ -266,6 +266,9 @@ func (t *Torrent) drop() {
|
||||
}
|
||||
|
||||
func (t *Torrent) Close() {
|
||||
if t.cache != nil && t.cache.Readers() > 0 {
|
||||
return
|
||||
}
|
||||
t.Stat = state.TorrentClosed
|
||||
|
||||
t.bt.mu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user