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

Commit edaa2946 authored by Alec Mouri's avatar Alec Mouri Committed by Automerger Merge Worker
Browse files

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

Change-Id: Iba6ef4b5395caddee95d5d5cbe10f4a31042a868
parents 5150f16e af8d8aa5
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;
}