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

Commit 657ff613 authored by Eric Laurent's avatar Eric Laurent
Browse files

audio policy: cleanup AudioPolicyService destructor

No need to clear strong pointers in the destuctor.
Add explicit exit() command to mOutputCommandThread.

Change-Id: I60bb248fe6a20bfd8a55358ef139692b93df0238
parent 5e0e2316
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -122,10 +122,8 @@ AudioPolicyService::AudioPolicyService()
AudioPolicyService::~AudioPolicyService()
{
    mTonePlaybackThread->exit();
    mTonePlaybackThread.clear();
    mAudioCommandThread->exit();
    mAudioCommandThread.clear();

    mOutputCommandThread->exit();

    // release audio pre processing resources
    for (size_t i = 0; i < mInputSources.size(); i++) {