Delete from downloaded ids of old torrent
This commit is contained in:
@@ -38,8 +38,9 @@ func (t *TorrentManager) handleFixers() {
|
|||||||
toDelete = append(toDelete, id)
|
toDelete = append(toDelete, id)
|
||||||
case "repaired": // id is fixer 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)
|
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, _ := allTorrents.Get(t.GetKey(torrent))
|
||||||
|
repairMe.DownloadedIDs.Remove(id)
|
||||||
|
toDelete = append(toDelete, id)
|
||||||
t.TriggerRepair(repairMe)
|
t.TriggerRepair(repairMe)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user