dav: fix bug in pipeline
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/1010/head
parent
921345523e
commit
9150e13fa9
|
@ -157,7 +157,7 @@ export async function* runInParallel<T>(promises: (() => Promise<T>)[], n: numbe
|
|||
}
|
||||
|
||||
// stop when all promises are done
|
||||
if (!running.length) break;
|
||||
if (!running.length && !promises.length) break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue