*Update dist

This commit is contained in:
Derrick Hammer 2023-02-17 08:20:16 -05:00
parent a7384cf688
commit 54a817742c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

4
dist/index.js vendored
View File

@ -39,11 +39,11 @@ export class SwarmClient extends Client {
if (this._ready) { if (this._ready) {
return 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.connectModule("listenConnections", { swarm: this.swarm }, async (socketId) => {
this.emit("connection", await createSocket(socketId)); this.emit("connection", await createSocket(socketId));
}); });
this._ready = this.callModuleReturn("ready", { swarm: this.swarm });
await this._ready;
this._ready = undefined; this._ready = undefined;
} }
async start() { async start() {