]> git.codecow.com Git - libnemo.git/commitdiff
Fix async destroy call not being awaited.
authorChris Duncan <chris@zoso.dev>
Thu, 3 Jul 2025 20:29:26 +0000 (13:29 -0700)
committerChris Duncan <chris@zoso.dev>
Thu, 3 Jul 2025 20:29:26 +0000 (13:29 -0700)
src/lib/workers/safe.ts

index af4346d2c9fc6b7a2beefad6aede34d0a99980c7..a5e31de6fd6004c67582d734b3806cc8013a25d1 100644 (file)
@@ -186,7 +186,7 @@ export class Safe extends WorkerInterface {
                        const decrypted = await globalThis.crypto.subtle.decrypt({ name: 'AES-GCM', iv: iv.buffer }, passkey, encrypted)
                        const decoded = buffer.toUtf8(decrypted)
                        const data = JSON.parse(decoded)
-                       this.destroy(name)
+                       await this.destroy(name)
                        return data
                } catch (err) {
                        return null