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

Skip to content
Commit e040b747 authored by Jakub Tyszkowski's avatar Jakub Tyszkowski
Browse files

LeAudio: Fix redundant audio hal stop

Trivial change - moved calling StopSession() on self from Cleanup()
method, to the parent object before it calls this Cleanup().
The parent tracks the interface state, so it calls StopSession() only
when it is actually running.

This fixes the additional StopSession from Cleanup() on the non-started interface:
 luetooth: packages/modules/Bluetooth/system/bta/le_audio/audio_hal_client/audio_source_hal_client.cc:362 - Stop:
 bt_stack: [INFO:le_audio_software.cc(313)] StopSession sink
 BTAudioClientLeAudioStub: packages/modules/Bluetooth/system/audio_hal_interface/le_audio_software.cc:103 - Cleanup: HAL transport: 0x01, is broadcast: 0
 t_stack: [INFO:le_audio_software.cc(313)] StopSession sink

Bug: 320275987
Test: m com.android.btservices; tested manually
Flag: EXEMPT; trivial change
Change-Id: I1e29d42fb1933470625964772b24a1d404a7aca6
parent 211d4783
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment