diff --git a/src/network.ts b/src/network.ts index ea53267..6d24c4a 100644 --- a/src/network.ts +++ b/src/network.ts @@ -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);