]> git.codecow.com Git - libnemo.git/commitdiff
Wait for lock before deleting wallet.
authorChris Duncan <chris@codecow.com>
Sat, 8 Aug 2026 09:31:09 +0000 (02:31 -0700)
committerChris Duncan <chris@codecow.com>
Sat, 8 Aug 2026 09:31:09 +0000 (02:31 -0700)
src/lib/wallet/destroy.ts

index e5d08b59c0cf24a19389cecbad34bc7c36bf4e49..a1007e6a0654bd93095a830227c13399aa6252f1 100644 (file)
@@ -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) {