move assignment of links to repair
This commit is contained in:
@@ -134,14 +134,6 @@ func (t *TorrentManager) refreshTorrents() {
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
t.workerPool.Submit(func() {
|
||||
allTorrents.IterCb(func(accessKey string, torrent *Torrent) {
|
||||
if torrent.UnassignedLinks.Cardinality() > 0 {
|
||||
t.assignLinks(torrent)
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// StartRefreshJob periodically refreshes the torrents
|
||||
|
||||
Reference in New Issue
Block a user