From: Chris Duncan Date: Sat, 15 Aug 2026 19:47:48 +0000 (-0700) Subject: Clear worker starting promise on failure path. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=dbb2884a75bbbf0c0bfa525d350621f2e4f3277e;p=nano25519.git Clear worker starting promise on failure path. --- diff --git a/src/lib/worker.ts b/src/lib/worker.ts index 24a5af8..66f9af5 100644 --- a/src/lib/worker.ts +++ b/src/lib/worker.ts @@ -222,6 +222,7 @@ export async function run (data: Record<'action', 'derive' | 'sign' | 'verify'> throw new Error('unknown error') } } catch (e: any) { + starting = undefined throw new Nano25519WorkerError(e) }