diff --git a/src/utils.ts b/src/utils.ts index 72cd99d..4e2c4cd 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -858,10 +858,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 }