Loading system/btif/src/btif_a2dp_source.cc +7 −2 Original line number Diff line number Diff line Loading @@ -574,8 +574,13 @@ void btif_a2dp_source_shutdown(std::promise<void> shutdown_complete_promise) { /* Make sure no channels are restarted while shutting down */ btif_a2dp_source_cb.SetState(BtifA2dpSource::kStateShuttingDown); // TODO(b/374166531) Remove the check for get_main_thread. if (local_thread() != get_main_thread()) { local_thread()->DoInThread(FROM_HERE, base::BindOnce(&btif_a2dp_source_shutdown_delayed, std::move(shutdown_complete_promise))); } else { btif_a2dp_source_shutdown_delayed(std::move(shutdown_complete_promise)); } } static void btif_a2dp_source_shutdown_delayed(std::promise<void> shutdown_complete_promise) { Loading Loading
system/btif/src/btif_a2dp_source.cc +7 −2 Original line number Diff line number Diff line Loading @@ -574,8 +574,13 @@ void btif_a2dp_source_shutdown(std::promise<void> shutdown_complete_promise) { /* Make sure no channels are restarted while shutting down */ btif_a2dp_source_cb.SetState(BtifA2dpSource::kStateShuttingDown); // TODO(b/374166531) Remove the check for get_main_thread. if (local_thread() != get_main_thread()) { local_thread()->DoInThread(FROM_HERE, base::BindOnce(&btif_a2dp_source_shutdown_delayed, std::move(shutdown_complete_promise))); } else { btif_a2dp_source_shutdown_delayed(std::move(shutdown_complete_promise)); } } static void btif_a2dp_source_shutdown_delayed(std::promise<void> shutdown_complete_promise) { Loading