mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-20 22:16:09 +05:00
don`t close torrent in read only mode
This commit is contained in:
@@ -277,7 +277,7 @@ func (t *Torrent) drop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *Torrent) Close() bool {
|
func (t *Torrent) Close() bool {
|
||||||
if t.cache != nil && t.cache.GetUseReaders() > 0 {
|
if settings.ReadOnly && t.cache != nil && t.cache.GetUseReaders() > 0 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
t.Stat = state.TorrentClosed
|
t.Stat = state.TorrentClosed
|
||||||
|
|||||||
Reference in New Issue
Block a user