mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-02-05 13:22:59 -05:00
If we have an exception thrown *back to us* complain and ignore it?
This commit is contained in:
@@ -426,7 +426,14 @@ class SafeBluetooth(private val context: Context, private val device: BluetoothD
|
||||
synchronized(workQueue) {
|
||||
warn("Failing ${workQueue.size} works, because ${ex.message}")
|
||||
workQueue.forEach {
|
||||
it.completion.resumeWithException(ex)
|
||||
try {
|
||||
it.completion.resumeWithException(ex)
|
||||
} catch (ex: Exception) {
|
||||
errormsg(
|
||||
"Mystery exception, why were we informed about our own exceptions?",
|
||||
ex
|
||||
)
|
||||
}
|
||||
}
|
||||
workQueue.clear()
|
||||
stopCurrentWork()
|
||||
|
||||
Submodule geeksville-androidlib updated: 95c5a9aa95...99dbf61fad
Reference in New Issue
Block a user