Fixing A2dpSinkStreamingStateMachine thread leak.
A2dpSinkStreamingStateMachine was being created on every Connection leading to a leak. Fix is to Quit the A2dpSinkStreamingStateMachine on A2dpSinkStateMachine's Quit() and create a new Streaming StateMachine only if it is null. Note that both the Sink and SinkStreaming State machines quit only on Adapter off, not on BT disconnect. Bug: b/32097580 Tested: On Mojave and Angler with bat_mas-userdebug Change-Id: I7f2e3ac01ce5ff965afe407e3605cac00497af36 (cherry picked from commit 595694a05fe2544ce53389aa8c153a036a63f0e0)
Loading
Please register or sign in to comment