mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-21 22:58:49 +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();
|
subscribableElectrumXClient.subscribeToBlockHeaders();
|
||||||
|
|
||||||
// set stream subscription
|
// set stream subscription
|
||||||
ElectrumxChainHeightService.subscriptions[cryptoCurrency.coin] =
|
ElectrumxChainHeightService.subscriptions[cryptoCurrency.coin] ??=
|
||||||
subscription.responseStream.asBroadcastStream().listen((event) {
|
subscription.responseStream.asBroadcastStream().listen((event) {
|
||||||
final response = event;
|
final response = event;
|
||||||
if (response != null &&
|
if (response != null &&
|
||||||
|
|
Loading…
Reference in a new issue