From ad062df383671d9395c9527bd8ac0cf7bbb16746 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 27 Jul 2022 00:05:42 -0400 Subject: [PATCH] *Update dist --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 90d3cc1..f17f6b4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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);