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

Commit 1efe994e authored by Sal Savage's avatar Sal Savage Committed by Automerger Merge Worker
Browse files

Merge "Exit notification timeouts immediately for disconnected devices" am:...

Merge "Exit notification timeouts immediately for disconnected devices" am: c18c2294 am: 8137d0c9

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1609997

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic58e6a8917dd6442d1fdb6a4d1b639926f340525
parents 4c3a75ca 8137d0c9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2844,6 +2844,12 @@ static void rc_notification_interim_timout(uint8_t label,
  cntxt.label = label;
  cntxt.rc_addr = p_dev->rc_addr;

  /* Device disconnections clear the event list but can't free the timer */
  if (p_dev == NULL || p_dev->rc_supported_event_list) {
    BTIF_TRACE_WARNING("%s: timeout for null device or event list", __func__);
    return;
  }

  list_foreach(p_dev->rc_supported_event_list,
               iterate_supported_event_list_for_timeout, &cntxt);
  /* Timeout happened for interim response for the registered event,