do not complete completed completer

This commit is contained in:
sneurlax 2024-02-08 17:33:04 -06:00
parent e8dc77529f
commit de1413f955

View file

@ -828,7 +828,7 @@ mixin ElectrumXInterface<T extends Bip39HDCurrency> on Bip39HDWallet<T> {
_latestHeight = chainHeight;
if (isFirstResponse) {
if (isFirstResponse && !completer.isCompleted) {
// Return the chain height.
completer.complete(chainHeight);
}