mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-16 21:06:40 -04:00
ignore failures delivering close exceptions (autobug)
This commit is contained in:
@@ -13,6 +13,7 @@ import com.geeksville.concurrent.CallbackContinuation
|
||||
import com.geeksville.concurrent.Continuation
|
||||
import com.geeksville.concurrent.SyncContinuation
|
||||
import com.geeksville.util.exceptionReporter
|
||||
import com.geeksville.util.ignoreException
|
||||
import kotlinx.coroutines.*
|
||||
import java.io.Closeable
|
||||
import java.util.*
|
||||
@@ -663,7 +664,10 @@ class SafeBluetooth(private val context: Context, private val device: BluetoothD
|
||||
lostConnectCallback = null
|
||||
connectionCallback = null
|
||||
|
||||
failAllWork(BLEException("Connection closing"))
|
||||
ignoreException {
|
||||
// Hmm - sometimes the "Connection closing" exception comes back to us - ignore it
|
||||
failAllWork(BLEException("Connection closing"))
|
||||
}
|
||||
|
||||
gatt?.let { g ->
|
||||
info("Closing our GATT connection")
|
||||
|
||||
Reference in New Issue
Block a user