Fix deleting torrent bug

This commit is contained in:
Mukhtar Akere
2025-03-27 09:01:33 +01:00
parent d49fbea60f
commit 4ae5de99e8

View File

@@ -136,7 +136,7 @@ func (c *Cache) refreshTorrents() {
newTorrents := make([]*types.Torrent, 0)
for _, t := range _newTorrents {
if !slices.Contains(deletedTorrents, t.Id) {
_newTorrents = append(_newTorrents, t)
newTorrents = append(newTorrents, t) // <-- FIXED: Use newTorrents
}
}