*Update dist
This commit is contained in:
parent
3864465ba2
commit
ad062df383
|
@ -105,7 +105,7 @@ export default class DHT {
|
||||||
relayIndex = await randomNumber(0, available.length - 1);
|
relayIndex = await randomNumber(0, available.length - 1);
|
||||||
}
|
}
|
||||||
const connection = this._relays.get(available[relayIndex]);
|
const connection = this._relays.get(available[relayIndex]);
|
||||||
if (!this.isServerAvailable(connection)) {
|
if (!(await this.isServerAvailable(connection))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const node = new DhtNode(new Stream(true, new WebSocket(connection)), this._options);
|
const node = new DhtNode(new Stream(true, new WebSocket(connection)), this._options);
|
||||||
|
|
Loading…
Reference in New Issue