diff --git a/src/utils.ts b/src/utils.ts index 41312d3b..9ee44736 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -768,10 +768,10 @@ export class PromiseGroup implements PromiseLike { while (this.promises.length > 0) { try { await this.promises[0] - this.promises.shift() } catch (error) { this.onError(error) } + this.promises.shift() } this.root = null }