Continue on delete failure for bins

This commit is contained in:
Ben Sarmiento
2024-05-27 21:40:44 +02:00
parent 0c64cda1d8
commit 5e204695df
2 changed files with 8 additions and 18 deletions

View File

@@ -67,12 +67,10 @@ func (t *TorrentManager) invokeRepair(torrent *Torrent) {
t.repairRunningMu.Unlock()
// before we let go, let's check repairQueue
t.workerPool.Submit(func() {
queuedTorrent, exists := t.repairQueue.Pop()
if exists {
t.TriggerRepair(queuedTorrent)
}
})
queuedTorrent, exists := t.repairQueue.Pop()
if exists {
t.TriggerRepair(queuedTorrent)
}
}
// TriggerRepair allows an on-demand repair to be initiated.