*If server is not available, remove from the available array and call removeRelay.
This commit is contained in:
parent
ad062df383
commit
3f843b5266
|
@ -150,6 +150,8 @@ export default class DHT {
|
|||
const connection = this._relays.get(available[relayIndex]) as string;
|
||||
|
||||
if (!(await this.isServerAvailable(connection))) {
|
||||
available.splice(relayIndex, 1);
|
||||
this.removeRelay(available[relayIndex]);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue