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 () {
|
||||
const pool = this.ndk.pool
|
||||
for (const relay of pool.urls()) {
|
||||
pool.removeRelay(relay)
|
||||
for (const pool of this.ndk.pools) {
|
||||
for (const relay of pool.urls()) {
|
||||
pool.removeRelay(relay)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user