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

Commit 463039f6 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: Ic4c66f30de6b34948856d6b3022be151f40985e6
parents 6529e09c 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;
}