*isServerAvailable is async
This commit is contained in:
parent
3cf6738850
commit
3864465ba2
|
@ -149,7 +149,7 @@ export default class DHT {
|
|||
|
||||
const connection = this._relays.get(available[relayIndex]) as string;
|
||||
|
||||
if (!this.isServerAvailable(connection)) {
|
||||
if (!(await this.isServerAvailable(connection))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue