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

Commit 0384ae1b authored by Andy Hung's avatar Andy Hung Committed by Gerrit Code Review
Browse files

Merge "audio: Fix AudioTrack stuck while interrupting waitStreamEndDone"

parents 2144f9bd fdf8e0fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -352,8 +352,8 @@ void AudioTrack::stopAndJoinCallbacks() {
    // Otherwise the callback thread will never exit.
    stop();
    if (mAudioTrackThread != 0) { // not thread safe
        mProxy->interrupt();
        mAudioTrackThread->requestExit();   // see comment in AudioTrack.h
        mProxy->interrupt();
        mAudioTrackThread->requestExitAndWait();
        mAudioTrackThread.clear();
    }