fuzeCount logic change

This commit is contained in:
sneurlax 2023-10-18 16:09:01 -05:00
parent a194195933
commit 1d011afa57

View file

@ -456,11 +456,17 @@ mixin FusionWalletInterface {
}, },
); );
int fuzeCount = fusionInfo.rounds; int fuzeCount = 0;
_stopRequested = false; _stopRequested = false;
while (fuzeCount > 0 && !_stopRequested) { while (!_stopRequested) {
fuzeCount--; if (fusionInfo.rounds > 0) {
if (fuzeCount >= fusionInfo.rounds) {
_stopRequested = true;
}
}
fuzeCount++;
// refresh wallet utxos // refresh wallet utxos
await _updateWalletUTXOS(); await _updateWalletUTXOS();