Fix repairs
This commit is contained in:
@@ -45,13 +45,13 @@ func (t *TorrentManager) RefreshTorrents() []string {
|
||||
continue
|
||||
}
|
||||
torrentIDs := info.DownloadedIDs.ToSlice()
|
||||
if !info.AnyInProgress() && len(torrentIDs) > 0 && t.forRepairs.Contains(info.DownloadedIDs.ToSlice()[0]) {
|
||||
if !info.AnyInProgress() && len(torrentIDs) > 0 && t.onlyForRepair.Contains(info.DownloadedIDs.ToSlice()[0]) {
|
||||
torrentID := info.DownloadedIDs.ToSlice()[0]
|
||||
// if it's 100% and it's a temp repair, remove it
|
||||
t.Api.DeleteTorrent(torrentID)
|
||||
toReinsert.Add(t.GetKey(info))
|
||||
infoChan <- nil
|
||||
t.forRepairs.Remove(torrentID)
|
||||
t.onlyForRepair.Remove(torrentID)
|
||||
continue
|
||||
}
|
||||
if !info.AnyInProgress() {
|
||||
|
||||
Reference in New Issue
Block a user