kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
fix crashlytics: if user shuts off bluetooth during scan, ignore failure
rodzic
9b2a6f3c92
commit
3bf285e77f
|
@ -47,8 +47,8 @@ object ScanState : Logging {
|
||||||
debug("stopping scan")
|
debug("stopping scan")
|
||||||
try {
|
try {
|
||||||
scanner!!.stopScan(callback)
|
scanner!!.stopScan(callback)
|
||||||
} catch (ex: IllegalStateException) {
|
} catch (ex: Throwable) {
|
||||||
warn("Ignoring error stopping scan, user probably disabled bluetooth: $ex")
|
warn("Ignoring error stopping scan, probably BT adapter was disabled suddenly: ${ex.message}")
|
||||||
}
|
}
|
||||||
callback = null
|
callback = null
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue