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);