Skip to content

Commit

Permalink
do not complete completed completer
Browse files Browse the repository at this point in the history
  • Loading branch information
sneurlax committed Feb 10, 2024
1 parent e8dc775 commit de1413f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit de1413f

Please sign in to comment.