Fix access key set not updating properly

This commit is contained in:
Ben Sarmiento
2023-12-07 10:59:43 +01:00
parent 8fe1c3249d
commit 35bffc12f5
4 changed files with 33 additions and 21 deletions

View File

@@ -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
})