*If discover returns false, treat like an error
This commit is contained in:
parent
2b836207ab
commit
9b815444e1
|
@ -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}`;
|
||||
|
|
Loading…
Reference in New Issue