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;