OSDN Git Service

Removed redundant alarm_free() call on the wrong thread
authorPavlin Radoslavov <pavlin@google.com>
Tue, 27 Feb 2018 07:16:43 +0000 (23:16 -0800)
committerPavlin Radoslavov <pavlin@google.com>
Tue, 27 Feb 2018 07:16:43 +0000 (23:16 -0800)
Bug: 73741079
Bug: 73892830
Test: Manual - A2DP connect/disconnect; audio streaming
Change-Id: I3e553245ef5ac10835d08b78e52a3fbd945914ee

btif/src/btif_a2dp_source.cc

index 40e0b52..ba1184a 100644 (file)
@@ -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));
 }