From 3d42967c8b5f1a1ae515956b8b80ee87f3f7a444 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Tue, 6 Feb 2024 20:46:33 -0600 Subject: [PATCH] only assign subscription if null --- .../wallet/wallet_mixin_interfaces/electrumx_interface.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wallets/wallet/wallet_mixin_interfaces/electrumx_interface.dart b/lib/wallets/wallet/wallet_mixin_interfaces/electrumx_interface.dart index 0d15efb7a..f6fba06ca 100644 --- a/lib/wallets/wallet/wallet_mixin_interfaces/electrumx_interface.dart +++ b/lib/wallets/wallet/wallet_mixin_interfaces/electrumx_interface.dart @@ -843,7 +843,7 @@ mixin ElectrumXInterface on Bip39HDWallet { subscribableElectrumXClient.subscribeToBlockHeaders(); // set stream subscription - ElectrumxChainHeightService.subscriptions[cryptoCurrency.coin] = + ElectrumxChainHeightService.subscriptions[cryptoCurrency.coin] ??= subscription.responseStream.asBroadcastStream().listen((event) { final response = event; if (response != null &&