Close every relay in every pool (#2130)
This commit is contained in:
parent
32d5f8277a
commit
e8d8e64bfb
@ -166,9 +166,10 @@ export default class Nostr {
|
|||||||
* Close all relay connections
|
* Close all relay connections
|
||||||
*/
|
*/
|
||||||
close () {
|
close () {
|
||||||
const pool = this.ndk.pool
|
for (const pool of this.ndk.pools) {
|
||||||
for (const relay of pool.urls()) {
|
for (const relay of pool.urls()) {
|
||||||
pool.removeRelay(relay)
|
pool.removeRelay(relay)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user