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

Commit 6102357e 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

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

Change-Id: I7236092875f4964391157c12019b5519864a94ee
parents 1eec4f36 5d9e49d4
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();
    }