]> git.codecow.com Git - libnemo.git/commitdiff
Fix autolock not returning early as expected if vault already locked.
authorChris Duncan <chris@codecow.com>
Sat, 27 Jun 2026 08:16:32 +0000 (01:16 -0700)
committerChris Duncan <chris@codecow.com>
Sat, 27 Jun 2026 08:16:32 +0000 (01:16 -0700)
src/lib/vault/index.ts

index e6190de123fbce78799be35c3800cfa932ff3f2b..a57c7091b8d0acf6a1607ec997f93ebed5aee268 100644 (file)
@@ -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}`)