Close every relay in every pool (#2130)

This commit is contained in:
ekzyis 2025-04-24 22:47:35 +02:00 committed by GitHub
parent 32d5f8277a
commit e8d8e64bfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}
}
}
}