mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-22 10:45:08 +00:00
minor code cleanup
This commit is contained in:
parent
8a3d8ff4ae
commit
9300073c91
1 changed files with 3 additions and 4 deletions
|
@ -158,6 +158,7 @@ abstract class LightningWalletBase extends ElectrumWallet with Store {
|
|||
}
|
||||
} catch (e) {
|
||||
print("Error initializing Breez: $e");
|
||||
return;
|
||||
}
|
||||
|
||||
Uint8List deviceKey = base64.decode(secrets.greenlightKey);
|
||||
|
@ -200,8 +201,8 @@ abstract class LightningWalletBase extends ElectrumWallet with Store {
|
|||
seed: seedBytes,
|
||||
),
|
||||
);
|
||||
} catch (e) {
|
||||
print("Error connecting to Breez: $e");
|
||||
} catch (e, s) {
|
||||
print("Error connecting to Breez: $e\n$s");
|
||||
}
|
||||
|
||||
_nodeStateSub = sdk.nodeStateStream.listen((event) {
|
||||
|
@ -367,9 +368,7 @@ abstract class LightningWalletBase extends ElectrumWallet with Store {
|
|||
await electrumClient.close();
|
||||
} catch (_) {}
|
||||
try {
|
||||
print("stopping breez");
|
||||
await stopBreez();
|
||||
print("stopped breez @@@@@@@@@@@@@@@@@@@@@@@@@@@@");
|
||||
} catch (e, s) {
|
||||
print("Error stopping breez: $e\n$s");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue