mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 13:14:32 +00:00
only assign subscription if null
This commit is contained in:
parent
469ab91dfd
commit
3d42967c8b
1 changed files with 1 additions and 1 deletions
|
@ -843,7 +843,7 @@ mixin ElectrumXInterface<T extends Bip39HDCurrency> on Bip39HDWallet<T> {
|
|||
subscribableElectrumXClient.subscribeToBlockHeaders();
|
||||
|
||||
// set stream subscription
|
||||
ElectrumxChainHeightService.subscriptions[cryptoCurrency.coin] =
|
||||
ElectrumxChainHeightService.subscriptions[cryptoCurrency.coin] ??=
|
||||
subscription.responseStream.asBroadcastStream().listen((event) {
|
||||
final response = event;
|
||||
if (response != null &&
|
||||
|
|
Loading…
Reference in a new issue