不要怂,就是干,撸起袖子干!

Commit b29184d1 by Matheus Bratfisch

Adding fix to issue #2736

1 parent d5e9a983
Showing with 6 additions and 1 deletions
...@@ -604,7 +604,12 @@ module.exports = (function() { ...@@ -604,7 +604,12 @@ module.exports = (function() {
dao[cascades[i]]().success(function(tasks) { dao[cascades[i]]().success(function(tasks) {
if (tasks === null || tasks.length < 1) { if (tasks === null || tasks.length < 1) {
return resolve(); if (i >= cascades.length) {
return resolve();
} else {
tick++;
return iterate(null, tick);
}
} }
tasks = Array.isArray(tasks) ? tasks : [tasks]; tasks = Array.isArray(tasks) ? tasks : [tasks];
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!