*Update dist

This commit is contained in:
Derrick Hammer 2022-07-27 00:05:42 -04:00
parent 3864465ba2
commit ad062df383
1 changed files with 1 additions and 1 deletions

2
dist/index.js vendored
View File

@ -105,7 +105,7 @@ export default class DHT {
relayIndex = await randomNumber(0, available.length - 1);
}
const connection = this._relays.get(available[relayIndex]);
if (!this.isServerAvailable(connection)) {
if (!(await this.isServerAvailable(connection))) {
continue;
}
const node = new DhtNode(new Stream(true, new WebSocket(connection)), this._options);