fix autobug when gatt is being destroyed

pull/61/head
geeksville 2020-06-18 15:45:30 -07:00
rodzic 65014dac48
commit 323809b762
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -665,7 +665,7 @@ class SafeBluetooth(private val context: Context, private val device: BluetoothD
private fun queueWriteDescriptor( private fun queueWriteDescriptor(
c: BluetoothGattDescriptor, c: BluetoothGattDescriptor,
cont: Continuation<BluetoothGattDescriptor> cont: Continuation<BluetoothGattDescriptor>
) = queueWork("writeD", cont) { gatt!!.writeDescriptor(c) } ) = queueWork("writeD", cont) { gatt?.writeDescriptor(c) ?: false }
fun asyncWriteDescriptor( fun asyncWriteDescriptor(
c: BluetoothGattDescriptor, c: BluetoothGattDescriptor,