From 3864465ba25432f0f7f413098278f13eb5012bec Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 27 Jul 2022 00:05:28 -0400 Subject: [PATCH] *isServerAvailable is async --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f0a155c..331506c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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; }