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

Commit 3ea0e97a authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "AudioRecord: Enforce worker thread join in dtor" into main

parents 710f6289 27a95bd5
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -189,9 +189,6 @@ AudioRecord::~AudioRecord()
}

void AudioRecord::stopAndJoinCallbacks() {
    // Prevent nullptr crash if it did not open properly.
    if (mStatus != NO_ERROR) return;

    // Make sure that callback function exits in the case where
    // it is looping on buffer empty condition in obtainBuffer().
    // Otherwise the callback thread will never exit.