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

Commit 5e0373b8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Visualizer: Fix race condition in setCaptureCallBack" into rvc-dev

parents 07dbadcd fcfa734a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -120,8 +120,9 @@ status_t Visualizer::setCaptureCallBack(capture_cbk_t cbk, void* user, uint32_t
    }

    if (mCaptureThread != 0) {
        sp<CaptureThread> t = mCaptureThread;
        mCaptureLock.unlock();
        mCaptureThread->requestExitAndWait();
        t->requestExitAndWait();
        mCaptureLock.lock();
    }