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

Commit af8d8aa5 authored by Alec Mouri's avatar Alec Mouri Committed by Android (Google) Code Review
Browse files

Merge "[SurfaceFlinger] Fix crash in SurfaceTracing" into rvc-dev

parents e5e41508 50aeef66
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -129,7 +129,12 @@ void SurfaceTracing::enable() {
}

status_t SurfaceTracing::writeToFile() {
    mThread.join();
    std::thread thread;
    {
        std::scoped_lock lock(mTraceLock);
        thread = std::move(mThread);
    }
    thread.join();
    return mLastErr;
}