prevent dead loop

This commit is contained in:
Issue哥 committed 2020-06-27 20:29:05 +08:00
1 parent 6f1124a623
commit 97bd5d0f60
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -557,6 +557,7 @@ async function create_folders ({ source, old_mapping, folders, root, task_id, se
}))
folders = folders.filter(v => !mapping[v.id])
same_levels = [].concat(...same_levels.map(v => folders.filter(vv => vv.parent === v.id)))
if (!limit.activeCount && !limit.pendingCount) break
}
clearInterval(loop)