*If discover returns false, treat like an error

This commit is contained in:
Derrick Hammer 2023-01-31 08:48:47 -05:00
parent 2b836207ab
commit 9b815444e1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,11 @@ export default class HyperswarmWeb extends EventEmitter {
continue;
}
if (!ret) {
relays.splice(index, 1);
continue;
}
ret = ret as Peer;
const connection = `wss://${ret.host}:${ret.port}`;