Fix access key set not updating properly
This commit is contained in:
@@ -53,6 +53,7 @@ func (t *TorrentManager) RefreshTorrents() []string {
|
||||
|
||||
// removed
|
||||
strset.Difference(t.accessKeySet, freshKeys).Each(func(accessKey string) bool {
|
||||
t.accessKeySet.Remove(accessKey)
|
||||
t.Delete(accessKey, false)
|
||||
return true
|
||||
})
|
||||
|
||||
@@ -35,9 +35,9 @@ func (t *TorrentManager) repairAll() {
|
||||
|
||||
func (t *TorrentManager) Repair(torrent *Torrent) {
|
||||
_ = t.repairWorker.Submit(func() {
|
||||
t.log.Info("Repairing torrent %s", torrent.AccessKey)
|
||||
t.log.Infof("Repairing torrent %s", torrent.AccessKey)
|
||||
t.repair(torrent)
|
||||
t.log.Info("Finished repairing torrent %s", torrent.AccessKey)
|
||||
t.log.Infof("Finished repairing torrent %s", torrent.AccessKey)
|
||||
})
|
||||
|
||||
var updatedPaths []string
|
||||
|
||||
Reference in New Issue
Block a user