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

Commit af6015f4 authored by Zach Johnson's avatar Zach Johnson
Browse files

Move bte_main_cleanup call to stack_manager

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ie379258bcd0e528148696b5be3827e372bad631f
parent 69f1ba34
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -402,7 +402,6 @@ bt_status_t btif_cleanup_bluetooth() {
  jni_thread.DoInThread(FROM_HERE, base::BindOnce(btif_jni_disassociate));
  btif_queue_release();
  jni_thread.ShutDown();
  bte_main_cleanup();
  delete exit_manager;
  exit_manager = nullptr;
  btif_dut_mode = 0;
+1 −0
Original line number Diff line number Diff line
@@ -341,6 +341,7 @@ static void event_clean_up_stack(void* context) {
  stack_is_initialized = false;

  btif_cleanup_bluetooth();
  bte_main_cleanup();
  module_clean_up(get_module(BTIF_CONFIG_MODULE));
  module_clean_up(get_module(BT_UTILS_MODULE));
  module_clean_up(get_module(OSI_MODULE));