prevent dead loop
This commit is contained in:
1 parent
6f1124a623
commit
97bd5d0f60
2 files changed
+2
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user