From b98db98b6a7807651e64d6d17beb1b4831f10ba2 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 17 Feb 2023 16:50:05 -0500 Subject: [PATCH] *Missing await --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index fee82c4..69c9d7e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -60,7 +60,7 @@ export class SwarmClient extends Client { } async start(): Promise { - this._connectBackoff.run(() => this.init()); + await this._connectBackoff.run(() => this.init()); this._connectBackoff.on("retry", (error: any) => { this.logErr(error);