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

Commit 404e51df authored by Chris Manton's avatar Chris Manton
Browse files

sdp: Process inflight SDP when device discovery cancel

Bug: 329918963
Bug: 329642681
Test: m .
Flag: continue_service_discovery_when_cancel_device_discovery
Change-Id: Ib7eaffe87300ccd550f5016c3e2141b0c09ccdcd
parent 92fb26ff
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2340,7 +2340,10 @@ bool bta_dm_search_sm_execute(const BT_HDR_RIGID* p_msg) {
          break;
        case BTA_DM_API_SEARCH_CANCEL_EVT:
          bta_dm_search_clear_queue();
          if (IS_FLAG_ENABLED(
                  continue_service_discovery_when_cancel_device_discovery)) {
            bta_dm_search_set_state(BTA_DM_SEARCH_CANCELLING);
          }
          bta_dm_search_cancel_notify();
          break;
        case BTA_DM_DISC_CLOSE_TOUT_EVT: