mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
small fix on pool.removeRelay()
This commit is contained in:
6
pool.js
6
pool.js
@@ -94,8 +94,10 @@ export function relayPool() {
|
|||||||
},
|
},
|
||||||
removeRelay(url) {
|
removeRelay(url) {
|
||||||
let relayURL = normalizeRelayURL(url)
|
let relayURL = normalizeRelayURL(url)
|
||||||
let {relay} = relays[relayURL]
|
let data = relays[relayURL]
|
||||||
if (!relay) return
|
if (!data) return
|
||||||
|
|
||||||
|
let {relay} = data
|
||||||
Object.values(activeSubscriptions).forEach(subscription =>
|
Object.values(activeSubscriptions).forEach(subscription =>
|
||||||
subscription.removeRelay(relay)
|
subscription.removeRelay(relay)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user