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

Commit 448f0159 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

attempt to work around [2155085, 2150246] stuck in closeTransaction()

parent 02965e13
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1125,7 +1125,14 @@ void SurfaceFlinger::closeGlobalTransaction()
        // take effect before returning.
        Mutex::Autolock _l(mStateLock);
        while (mResizeTransationPending) {
            mTransactionCV.wait(mStateLock);
            status_t err = mTransactionCV.waitRelative(mStateLock, s2ns(5));
            if (CC_UNLIKELY(err != NO_ERROR)) {
                // just in case something goes wrong in SF, return to the
                // called after a few seconds.
                LOGW_IF(err == TIMED_OUT, "closeGlobalTransaction timed out!");
                mResizeTransationPending = false;
                break;
            }
        }
    }
}