From 38a599ce55accc3a3903f645a491323efbb38d6e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 20 Jul 2022 18:31:55 -0400 Subject: [PATCH] *Ensure we await on the promise not the wrapper --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 991fb19..e307726 100644 --- a/src/index.ts +++ b/src/index.ts @@ -64,7 +64,8 @@ export class RpcNetwork { public async processQueue(): Promise { for (const promise of this._actionQueue) { try { - await promise(); + const p = promise(); + await p; } catch (e: any) {} }