diff --git a/server/torr/apihelper.go b/server/torr/apihelper.go index 87e5fcb..1eba48a 100644 --- a/server/torr/apihelper.go +++ b/server/torr/apihelper.go @@ -139,6 +139,9 @@ func SetTorrent(hashHex, title, poster, data string) *Torrent { } func RemTorrent(hashHex string) { + if sets.ReadOnly { + return + } hash := metainfo.NewHashFromHex(hashHex) if bts.RemoveTorrent(hash) { if sets.BTsets.UseDisk && hashHex != "" && hashHex != "/" {