*If we fail to get the RPC methods list from the peer, abort the connection
This commit is contained in:
parent
63ce23fa26
commit
ab6f7d76e2
|
@ -141,6 +141,11 @@ export default class RpcNetwork {
|
|||
});
|
||||
const resp = await query.result;
|
||||
|
||||
if (resp.error) {
|
||||
relay.end();
|
||||
return;
|
||||
}
|
||||
|
||||
if (resp.data) {
|
||||
this._relays.set(pubkey, relay);
|
||||
|
||||
|
|
Loading…
Reference in New Issue