Skip to content
Snippets Groups Projects
Commit d5367631 authored by William Escande's avatar William Escande
Browse files

Change log order for module starting

Because of recursion, we think we are starting the wrong module in the
error crash
"Can't start stack, last instance: starting Btaa Module" while it's
stuck on hci

Test: None
Bug: 261263171
Change-Id: If7d87a7c98c2190f1db9de84a1c6f5de814d4f2d
parent 89ed1a00
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,6 @@ Module* ModuleRegistry::Start(const ModuleFactory* module, Thread* thread) {
LOG_INFO("Constructing next module");
Module* instance = module->ctor_();
last_instance_ = "starting " + instance->ToString();
set_registry_and_handler(instance, thread);
LOG_INFO("Starting dependencies of %s", instance->ToString().c_str());
......@@ -93,6 +92,7 @@ Module* ModuleRegistry::Start(const ModuleFactory* module, Thread* thread) {
LOG_INFO("Finished starting dependencies and calling Start() of %s", instance->ToString().c_str());
last_instance_ = "starting " + instance->ToString();
instance->Start();
start_order_.push_back(module);
started_modules_[module] = instance;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment