From 54a817742c60cc9f886072245ad74faec349eb2f Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 17 Feb 2023 08:20:16 -0500 Subject: [PATCH] *Update dist --- dist/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index ece4e65..ddbd90b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -39,11 +39,11 @@ export class SwarmClient extends Client { if (this._ready) { return this._ready; } - this._ready = this.callModuleReturn("ready", { swarm: this.swarm }); - await this._ready; this.connectModule("listenConnections", { swarm: this.swarm }, async (socketId) => { this.emit("connection", await createSocket(socketId)); }); + this._ready = this.callModuleReturn("ready", { swarm: this.swarm }); + await this._ready; this._ready = undefined; } async start() {