From b556ecbce721761fb0164ffd69666eb31ce7ac01 Mon Sep 17 00:00:00 2001 From: YouROK <8YouROK8@mail.ru> Date: Fri, 16 May 2025 15:32:09 +0300 Subject: [PATCH] don`t close torrent in read only mode --- server/torr/torrent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/torr/torrent.go b/server/torr/torrent.go index afd29c2..a9708bc 100644 --- a/server/torr/torrent.go +++ b/server/torr/torrent.go @@ -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