From 8986d45e8e56ed2478979a6a8f2d9e410d9ceb26 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 20 Jul 2022 18:36:47 -0400 Subject: [PATCH] *Process the queue in reverse --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index e307726..a71d7b3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -62,7 +62,7 @@ export class RpcNetwork { } public async processQueue(): Promise { - for (const promise of this._actionQueue) { + for (const promise of this._actionQueue.reverse()) { try { const p = promise(); await p;