*Listen for connections before waiting for ready
This commit is contained in:
parent
72324beb68
commit
a7384cf688
|
@ -53,10 +53,6 @@ export class SwarmClient extends Client {
|
|||
return this._ready;
|
||||
}
|
||||
|
||||
this._ready = this.callModuleReturn("ready", { swarm: this.swarm });
|
||||
|
||||
await this._ready;
|
||||
|
||||
this.connectModule(
|
||||
"listenConnections",
|
||||
{ swarm: this.swarm },
|
||||
|
@ -65,6 +61,10 @@ export class SwarmClient extends Client {
|
|||
}
|
||||
);
|
||||
|
||||
this._ready = this.callModuleReturn("ready", { swarm: this.swarm });
|
||||
|
||||
await this._ready;
|
||||
|
||||
this._ready = undefined;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue