From 9b57d604322d6b1d0969a9b815b4b02ce18f927f Mon Sep 17 00:00:00 2001 From: geeksville Date: Mon, 20 Apr 2020 10:15:22 -0700 Subject: [PATCH] add note about an unsolved autobug --- .../main/java/com/geeksville/mesh/service/SafeBluetooth.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/geeksville/mesh/service/SafeBluetooth.kt b/app/src/main/java/com/geeksville/mesh/service/SafeBluetooth.kt index f71ac6683..033fca620 100644 --- a/app/src/main/java/com/geeksville/mesh/service/SafeBluetooth.kt +++ b/app/src/main/java/com/geeksville/mesh/service/SafeBluetooth.kt @@ -205,6 +205,7 @@ class SafeBluetooth(private val context: Context, private val device: BluetoothD } override fun onServicesDiscovered(gatt: BluetoothGatt, status: Int) { + // For testing lie and claim failure completeWork(status, Unit) } @@ -324,7 +325,8 @@ class SafeBluetooth(private val context: Context, private val device: BluetoothD // startup next job in queue before calling the completion handler val work = synchronized(workQueue) { - val w = currentWork!! // will throw if null, which is helpful + val w = + currentWork!! // will throw if null, which is helpful (FIXME - throws in the field) currentWork = null // We are now no longer working on anything startNewWork()