mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-12 09:32:33 +00:00
save
This commit is contained in:
parent
e40804d5e2
commit
779b5eef9e
1 changed files with 2 additions and 2 deletions
|
@ -228,13 +228,13 @@ abstract class LightningWalletBase extends ElectrumWallet with Store {
|
|||
print("Error connecting to Breez: $e\n$s");
|
||||
}
|
||||
|
||||
_nodeStateSub?.cancel();
|
||||
await _nodeStateSub?.cancel();
|
||||
_nodeStateSub = sdk.nodeStateStream.listen((event) {
|
||||
_handleNodeState(event);
|
||||
});
|
||||
await _handleNodeState(await sdk.nodeInfo());
|
||||
|
||||
_paymentsSub?.cancel();
|
||||
await _paymentsSub?.cancel();
|
||||
_paymentsSub = sdk.paymentsStream.listen((List<Payment> payments) {
|
||||
_handlePayments(payments);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue