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

Skip to content
Commit cad3b091 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Jakub Pawłowski
Browse files

Fix bta_dm_disc stuck in cancelling state

When service discovery is cancelled, we still expect to receive some sort of
result either from SDP or GATT, and won't move to any different state
until we do. We are stuck in BTA_DM_SEARCH_CANCELLING state.
If service discovery fails to establish GATT connection, or if it was to
fail i.e. due to peer disconnection, we should move on to next device
trying to discover services. Without this patch, we stay stuck until
Bluetooth restart.

Bug: 318580354
Bug: 319890673
Test: Try bonding, disconnect device while GATT service discovery is
scheduled but not yet done
Change-Id: I7c59701831d0b9288dea9eea375769db357fb7bc

Change-Id: I5a57789639b8fb6a55539e1e5c63c7530292336e
parent b16e016a
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