Repair logs
This commit is contained in:
@@ -43,7 +43,7 @@ func (t *TorrentManager) RefreshTorrents() []string {
|
||||
noInfoCount++
|
||||
continue
|
||||
}
|
||||
if !info.AnyInProgress() {
|
||||
if !info.AllInProgress() {
|
||||
freshKeys.Add(info.AccessKey)
|
||||
}
|
||||
if torrent, exists := allTorrents.Get(info.AccessKey); !exists {
|
||||
@@ -76,6 +76,7 @@ func (t *TorrentManager) RefreshTorrents() []string {
|
||||
return true
|
||||
})
|
||||
// removed torrents
|
||||
// items which are in in t.allAccessKeys but not in freshKeys
|
||||
strset.Difference(t.allAccessKeys, freshKeys).Each(func(accessKey string) bool {
|
||||
t.Delete(accessKey, false)
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user