dav: fix bug in pipeline

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/1010/head
Varun Patil 2024-01-10 15:23:35 -08:00
parent 921345523e
commit 9150e13fa9
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ export async function* runInParallel<T>(promises: (() => Promise<T>)[], n: numbe
} }
// stop when all promises are done // stop when all promises are done
if (!running.length) break; if (!running.length && !promises.length) break;
} }
} }