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

Commit 3638e1c7 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Removed redundant alarm_free() call on the wrong thread

Bug: 73741079
Bug: 73892830
Test: Manual - A2DP connect/disconnect; audio streaming
Change-Id: I3e553245ef5ac10835d08b78e52a3fbd945914ee
parent a268ecd6
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -428,10 +428,6 @@ void btif_a2dp_source_shutdown(void) {
  /* Make sure no channels are restarted while shutting down */
  btif_a2dp_source_cb.SetState(BtifA2dpSource::kStateShuttingDown);

  // Stop the timer
  alarm_free(btif_a2dp_source_cb.media_alarm);
  btif_a2dp_source_cb.media_alarm = nullptr;

  btif_a2dp_source_thread.DoInThread(
      FROM_HERE, base::Bind(&btif_a2dp_source_shutdown_delayed));
}