Immediate cleanup to prevent inconsistencies
This commit is contained in:
@@ -79,6 +79,10 @@ func (t *TorrentManager) refreshTorrents() []string {
|
||||
})
|
||||
}
|
||||
|
||||
t.workerPool.Submit(func() {
|
||||
t.cleanupBins(freshIDs)
|
||||
})
|
||||
|
||||
wg.Wait()
|
||||
close(mergeChan)
|
||||
|
||||
@@ -136,8 +140,6 @@ func (t *TorrentManager) refreshTorrents() []string {
|
||||
}
|
||||
return false
|
||||
})
|
||||
|
||||
t.cleanupBins(freshIDs)
|
||||
})
|
||||
|
||||
return updatedPaths.ToSlice()
|
||||
|
||||
Reference in New Issue
Block a user