From ba9cf5fe6c8b49e58f13206457ecb8f6bd5d1a11 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 27 Jun 2026 01:16:32 -0700 Subject: [PATCH] Fix autolock not returning early as expected if vault already locked. --- src/lib/vault/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/vault/index.ts b/src/lib/vault/index.ts index e6190de..a57c709 100644 --- a/src/lib/vault/index.ts +++ b/src/lib/vault/index.ts @@ -116,8 +116,8 @@ export class Vault { if (typeof isLocked === 'boolean' && this.#isLocked !== isLocked) { this.#isLocked = isLocked this.dispatchEvent(new Event(isLocked ? LOCKED : UNLOCKED)) - if (id === 'autolock') return } + if (id === 'autolock') return const task = this.#tasks.get(id) if (task == null) { throw new Error(`Vault worker returned results without an associated job for ID ${id}`) -- 2.52.0