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

Commit 771e93f3 authored by Phil Burk's avatar Phil Burk Committed by android-build-merger
Browse files

Merge "audioflinger: do not call onTearDown() in threadLoop_exit()" into oc-mr1-dev am: 7d7d3210

am: cca1e69c

Change-Id: I05a463127907ce5dab0c3e8bbd8c73ff4a3e0e61
parents fcfb09c6 cca1e69c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -8153,10 +8153,8 @@ void AudioFlinger::MmapThread::threadLoop_standby()

void AudioFlinger::MmapThread::threadLoop_exit()
{
    sp<MmapStreamCallback> callback = mCallback.promote();
    if (callback != 0) {
        callback->onTearDown();
    }
    // Do not call callback->onTearDown() because it is redundant for thread exit
    // and because it can cause a recursive mutex lock on stop().
}

status_t AudioFlinger::MmapThread::setSyncEvent(const sp<SyncEvent>& event __unused)