From: Daniela Brozzoni Date: Wed, 14 Sep 2022 13:24:05 +0000 (+0200) Subject: Fix the wallet's "stop button" X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/struct.DecoderReader.html?a=commitdiff_plain;h=c3c4ddc92e67babe0951fc4eea3911ea7635e47d;p=bitcoindevkit.org Fix the wallet's "stop button" The stop button wouldn't work as it was calling `currentWallet.free()`, which is not defined. Instead, assigning null to currentWallet and let the garbage collector do its thing. --- diff --git a/playground/src/index.js b/playground/src/index.js index d0d3642b09..820e13e19c 100644 --- a/playground/src/index.js +++ b/playground/src/index.js @@ -127,7 +127,7 @@ async function startWallet(desc, change_desc) { e.preventDefault(); - currentWallet.free(); + currentWallet = null; start_message.innerHTML = "Wallet instance destroyed"; start_button.disabled = false;