From 46687a0a029c140d3ad341edabf185e53317ab0b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 29 Oct 2024 16:42:40 -0500 Subject: [PATCH] Close the bunker manually due to `using` not working --- src/actions/nostr.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/actions/nostr.ts b/src/actions/nostr.ts index e9aec6dd8..b639537a3 100644 --- a/src/actions/nostr.ts +++ b/src/actions/nostr.ts @@ -20,7 +20,7 @@ function logInNostr(signer: NostrSigner, relay: NRelay1) { let authorizedPubkey: string | undefined; - using bunker = new NBunker({ + const bunker = new NBunker({ relay, userSigner: signer, bunkerSigner: authorization.signer, @@ -61,6 +61,9 @@ function logInNostr(signer: NostrSigner, relay: NRelay1) { }); await dispatch(verifyCredentials(accessToken)); + + // TODO: get rid of `vite-plugin-require` and switch to `using` for the bunker. :( + bunker.close(); }; }