*Ensure we await on the promise not the wrapper

This commit is contained in:
Derrick Hammer 2022-07-20 18:31:55 -04:00
parent c121879cbd
commit 38a599ce55
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ export class RpcNetwork {
public async processQueue(): Promise<void> { public async processQueue(): Promise<void> {
for (const promise of this._actionQueue) { for (const promise of this._actionQueue) {
try { try {
await promise(); const p = promise();
await p;
} catch (e: any) {} } catch (e: any) {}
} }