Clone set before modifying
This commit is contained in:
@@ -124,7 +124,7 @@ func (t *TorrentManager) binOnceDone(torrentId string) bool {
|
||||
}
|
||||
|
||||
hasError := false
|
||||
t.OnceDoneBin.Each(func(entry string) bool {
|
||||
t.OnceDoneBin.Clone().Each(func(entry string) bool {
|
||||
if strings.Contains(entry, specialCase) {
|
||||
idToDelete := strings.Split(entry, "-")[1]
|
||||
if err := t.api.DeleteTorrent(idToDelete); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user