Better Ledger Connection handling (#1802)

This commit is contained in:
Konstantin Ullrich
2024-11-13 10:44:43 +01:00
committed by GitHub
parent c4698576a3
commit 0adb69d095
5 changed files with 14 additions and 6 deletions
@@ -98,7 +98,9 @@ abstract class LedgerViewModelBase with Store {
print('Ledger Device State Changed: $event');
if (event == sdk.BleConnectionState.disconnected) {
_connection = null;
_connectionChangeListener?.cancel();
if (type == WalletType.monero) {
monero!.resetLedgerConnection();
}
}
});
}