revert ro on remove

This commit is contained in:
yourok
2024-01-08 19:19:14 +03:00
parent 6ac8e1b84e
commit ed8620fe47

View File

@@ -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 != "/" {