From 2944a932b86d670342452d86fe8c8a522e7c498c Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 29 Mar 2025 18:03:39 -0300 Subject: [PATCH] nip46: mark connection as closed when relays disconnect. --- nip46.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nip46.ts b/nip46.ts index 26b46ed..0205b9d 100644 --- a/nip46.ts +++ b/nip46.ts @@ -150,6 +150,9 @@ export class BunkerSigner { delete listeners[id] } }, + onclose: () => { + this.isOpen = false + }, }, ) this.isOpen = true