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

Commit 8137d0c9 authored by Sal Savage's avatar Sal Savage Committed by Automerger Merge Worker
Browse files

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

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3750f19b3dcbde7bc23506db6cf59f22e6f52e6b
parents ff9917cf c18c2294
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,