mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-24 08:43:27 -04:00
fix crashlytics: if user shuts off bluetooth during scan, ignore failure
This commit is contained in:
@@ -47,8 +47,8 @@ object ScanState : Logging {
|
||||
debug("stopping scan")
|
||||
try {
|
||||
scanner!!.stopScan(callback)
|
||||
} catch (ex: IllegalStateException) {
|
||||
warn("Ignoring error stopping scan, user probably disabled bluetooth: $ex")
|
||||
} catch (ex: Throwable) {
|
||||
warn("Ignoring error stopping scan, probably BT adapter was disabled suddenly: ${ex.message}")
|
||||
}
|
||||
callback = null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user