Skip to content

Commit

Permalink
fix ledger crash
Browse files Browse the repository at this point in the history
  • Loading branch information
sorokin0andrey committed Nov 21, 2024
1 parent ffe0144 commit ad82d32
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ class LedgerConnectionViewModel(
bleManager.startScanning {
val device = it.first()

bleManager.stopScanning()
try {
bleManager.stopScanning()
} catch (_: Exception) {}

connect(device.id)
}
}
Expand Down

0 comments on commit ad82d32

Please sign in to comment.