Assign links outside repair
This commit is contained in:
@@ -156,6 +156,14 @@ func (t *TorrentManager) refreshTorrents() []string {
|
||||
})
|
||||
})
|
||||
|
||||
t.workerPool.Submit(func() {
|
||||
allTorrents.IterCb(func(accessKey string, torrent *Torrent) {
|
||||
if torrent.UnassignedLinks.Cardinality() > 0 {
|
||||
t.assignLinks(torrent)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
return updatedPaths.ToSlice()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user