don`t close torrent in read only mode

This commit is contained in:
YouROK
2025-05-16 15:32:09 +03:00
parent 4563fcc798
commit b556ecbce7

View File

@@ -277,7 +277,7 @@ func (t *Torrent) drop() {
}
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
}
t.Stat = state.TorrentClosed