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

Commit 6c51b479 authored by Zach Johnson's avatar Zach Johnson
Browse files

Pull bte_main_boot_entry out of btif_init_bluetooth

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I19bc0dafbbf163fc5569fecdda5055aeeb624d0b
parent 3a6accf5
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -322,7 +322,6 @@ void btif_sendmsg(void* p_msg) {
bt_status_t btif_init_bluetooth() {
  LOG_INFO("%s entered", __func__);
  exit_manager = new base::AtExitManager();
  bte_main_boot_entry();
  jni_thread.StartUp();
  jni_thread.DoInThread(FROM_HERE, base::Bind(btif_jni_associate));
  LOG_INFO("%s finished", __func__);
+1 −0
Original line number Diff line number Diff line
@@ -154,6 +154,7 @@ static void event_init_stack(void* context) {
    }
    module_init(get_module(BTIF_CONFIG_MODULE));
    btif_init_bluetooth();
    bte_main_boot_entry();

    // stack init is synchronous, so no waiting necessary here
    stack_is_initialized = true;