From d33a901f669b9a2a3868b4c184be5fe58a2974a6 Mon Sep 17 00:00:00 2001 From: cyan Date: Tue, 31 Dec 2024 17:47:17 +0100 Subject: [PATCH] Fix unavailable balance not refreshing after the app got opened (#1920) --- cw_monero/lib/monero_wallet.dart | 4 ++++ cw_monero/lib/monero_wallet_service.dart | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cw_monero/lib/monero_wallet.dart b/cw_monero/lib/monero_wallet.dart index 4d2f95e47..9f46d32cd 100644 --- a/cw_monero/lib/monero_wallet.dart +++ b/cw_monero/lib/monero_wallet.dart @@ -503,6 +503,7 @@ abstract class MoneroWalletBase extends WalletBase updateUnspent() async { + await transaction_history.txHistoryMutex.acquire(); try { refreshCoins(walletAddresses.account!.id); @@ -531,6 +532,7 @@ abstract class MoneroWalletBase extends WalletBase _addCoinInfo(coin)); + transaction_history.txHistoryMutex.release(); return; } @@ -555,7 +557,9 @@ abstract class MoneroWalletBase extends WalletBase