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

Commit 73b665b1 authored by Henri Chataing's avatar Henri Chataing Committed by Gerrit Code Review
Browse files

Merge "Inline btif_a2dp_source_end_session_delayed into btif_a2dp_source_end_session" into main

parents 306aef12 0eccb643
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -531,9 +531,15 @@ bool btif_a2dp_source_restart_session(const RawAddress& old_peer_address,

bool btif_a2dp_source_end_session(const RawAddress& peer_address) {
  log::info("peer_address={} state={}", peer_address, btif_a2dp_source_cb.StateStr());
  if (com::android::bluetooth::flags::a2dp_source_threading_fix()) {
    btif_a2dp_source_cleanup_codec();
    btif_a2dp_source_end_session_delayed(peer_address);
  } else {

    local_thread()->DoInThread(FROM_HERE,
                               base::BindOnce(&btif_a2dp_source_end_session_delayed, peer_address));
    btif_a2dp_source_cleanup_codec();
  }
  return true;
}