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

Commit c18c2294 authored by Sal Savage's avatar Sal Savage Committed by Gerrit Code Review
Browse files

Merge "Exit notification timeouts immediately for disconnected devices"

parents f6a1feb1 9b7ce2af
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,