*add negative condition
This commit is contained in:
parent
ec291909c4
commit
fe09e2a5d9
|
@ -124,7 +124,7 @@ export default class DHT {
|
||||||
|
|
||||||
private async fillConnections(): Promise<any> {
|
private async fillConnections(): Promise<any> {
|
||||||
let available = [...this._relays.keys()].filter((x) =>
|
let available = [...this._relays.keys()].filter((x) =>
|
||||||
[...this._activeRelays.keys()].includes(x)
|
![...this._activeRelays.keys()].includes(x)
|
||||||
);
|
);
|
||||||
let relayPromises = [];
|
let relayPromises = [];
|
||||||
if (0 > available.length) {
|
if (0 > available.length) {
|
||||||
|
|
Loading…
Reference in New Issue