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

Commit 0c4bea5b authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

Merge "AudioRecord: interrupt after requesting exit" am: 858d8f57 am: 5d9e49d4 am: 6102357e

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1909412

Change-Id: I1e3d7ed6d8ba1f8859e0ce4f7843fb433fe544c3
parents 5f3f71a9 6102357e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -205,8 +205,8 @@ void AudioRecord::stopAndJoinCallbacks() {
    // Otherwise the callback thread will never exit.
    stop();
    if (mAudioRecordThread != 0) {
        mProxy->interrupt();
        mAudioRecordThread->requestExit();  // see comment in AudioRecord.h
        mProxy->interrupt();
        mAudioRecordThread->requestExitAndWait();
        mAudioRecordThread.clear();
    }