mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
If we have an exception thrown *back to us* complain and ignore it?
This commit is contained in:
parent
f7ca63ed92
commit
bc6fa0b1bb
2 changed files with 9 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 95c5a9aa950f917857a3cc0c7cd84a4a56993032
|
||||
Subproject commit 99dbf61fad087db910be7f74867a8f14aba877a4
|
||||
Loading…
Add table
Add a link
Reference in a new issue