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

Commit cd882e68 authored by Hansong Zhang's avatar Hansong Zhang Committed by Automerger Merge Worker
Browse files

Clean up user apps before GD is shutdown am: fe762253 am: 880c1b5d am: bb8b6433

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

Change-Id: Ief0aa70c843bfa3280d65273555b28befb16ae6f
parents 4903c057 bb8b6433
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -291,6 +291,11 @@ static void event_shut_down_stack(UNUSED_ATTR void* context) {

  future_await(local_hack_future);

  gatt_free();
  l2c_free();
  sdp_free();
  btm_free();

  if (bluetooth::shim::is_any_gd_enabled()) {
    LOG_INFO("%s Gd shim module disabled", __func__);
    module_shut_down(get_module(GD_SHIM_MODULE));
@@ -304,11 +309,6 @@ static void event_shut_down_stack(UNUSED_ATTR void* context) {

  module_clean_up(get_module(BTE_LOGMSG_MODULE));

  gatt_free();
  l2c_free();
  sdp_free();
  btm_free();

  module_shut_down(get_module(CONTROLLER_MODULE));  // Doesn't do any work, just
                                                    // puts it in a restartable
                                                    // state