From 1d011afa5700f8dd18a46e63c431cc20d6406acb Mon Sep 17 00:00:00 2001 From: sneurlax Date: Wed, 18 Oct 2023 16:09:01 -0500 Subject: [PATCH] fuzeCount logic change --- lib/services/mixins/fusion_wallet_interface.dart | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/services/mixins/fusion_wallet_interface.dart b/lib/services/mixins/fusion_wallet_interface.dart index b70d99c03..fe49fa7c6 100644 --- a/lib/services/mixins/fusion_wallet_interface.dart +++ b/lib/services/mixins/fusion_wallet_interface.dart @@ -456,11 +456,17 @@ mixin FusionWalletInterface { }, ); - int fuzeCount = fusionInfo.rounds; + int fuzeCount = 0; _stopRequested = false; - while (fuzeCount > 0 && !_stopRequested) { - fuzeCount--; + while (!_stopRequested) { + if (fusionInfo.rounds > 0) { + if (fuzeCount >= fusionInfo.rounds) { + _stopRequested = true; + } + } + + fuzeCount++; // refresh wallet utxos await _updateWalletUTXOS();