From ecd1fa6f70f43993dabee551e34d2dd1e048a356 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 8 Aug 2026 02:31:09 -0700 Subject: [PATCH] Wait for lock before deleting wallet. --- src/lib/wallet/destroy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/wallet/destroy.ts b/src/lib/wallet/destroy.ts index e5d08b5..a1007e6 100644 --- a/src/lib/wallet/destroy.ts +++ b/src/lib/wallet/destroy.ts @@ -9,7 +9,7 @@ export async function _destroy (wallet: Wallet, vault: Vault) { try { vault.terminate() if (wallet.type === 'Ledger') { - wallet.lock() + await wallet.lock() } const isDeleted = await Database.delete(wallet.id, Wallet.DB_NAME) if (!isDeleted) { -- 2.52.0