From 617cdf9acdb1e7a5564471f029b05bc1a77b000c Mon Sep 17 00:00:00 2001 From: Pavlin Radoslavov Date: Mon, 26 Feb 2018 23:16:43 -0800 Subject: [PATCH] Removed redundant alarm_free() call on the wrong thread Bug: 73741079 Bug: 73892830 Test: Manual - A2DP connect/disconnect; audio streaming Change-Id: I3e553245ef5ac10835d08b78e52a3fbd945914ee --- btif/src/btif_a2dp_source.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/btif/src/btif_a2dp_source.cc b/btif/src/btif_a2dp_source.cc index 40e0b52cd..ba1184ae5 100644 --- a/btif/src/btif_a2dp_source.cc +++ b/btif/src/btif_a2dp_source.cc @@ -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)); } -- 2.11.0