Delete from downloaded ids of old torrent

This commit is contained in:
Ben Sarmiento
2024-02-01 20:55:33 +01:00
parent 0649a083bd
commit 004257c7a7

View File

@@ -38,8 +38,9 @@ func (t *TorrentManager) handleFixers() {
toDelete = append(toDelete, id)
case "repaired": // id is fixer id
t.log.Debugf("Repairing torrent %s again now that fixer id=%s is done", t.GetKey(torrent), id)
toDelete = append(toDelete, id)
repairMe, _ := allTorrents.Get(t.GetKey(torrent))
repairMe.DownloadedIDs.Remove(id)
toDelete = append(toDelete, id)
t.TriggerRepair(repairMe)
}
})