Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit cf66648a authored by Kyunglyul Hyun's avatar Kyunglyul Hyun
Browse files

Fix BluetoothGatt busy state after failure

Previously, when BluetoothGatt#writeCharacteristics
failed early, the `mDeviceBusy` incorrectly remain
`true`. This prevented subsequent operations
on the BluetoothGatt instance.

This change ensures the `mDeviceBusy` is properly set to
`false` after a failure is returned by the service,
allowing for continued use of the instance.

It also adds a test for ensuring the behavior.

Bug: 322580271
Bug: 322509603
Test: atest GattClientTest

Change-Id: I6aea853745e15aca5c4caf75037e680592e74c81
parent b98008c9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment