]> git.codecow.com Git - nano25519.git/commitdiff
Clear worker starting promise on failure path.
authorChris Duncan <chris@zoso.dev>
Sat, 15 Aug 2026 19:47:48 +0000 (12:47 -0700)
committerChris Duncan <chris@zoso.dev>
Sat, 15 Aug 2026 19:47:48 +0000 (12:47 -0700)
src/lib/worker.ts

index 24a5af833c1ab1c7f7e9bff300c0ea21fad4c08a..66f9af5de19d580f79735b428175721a2ad7e8dd 100644 (file)
@@ -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)
        }