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

Commit 858d8f57 authored by Andy Hung's avatar Andy Hung Committed by Gerrit Code Review
Browse files

Merge "AudioRecord: interrupt after requesting exit"

parents 0384ae1b 21f819c7
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();
    }