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

Commit 3f51f643 authored by Valerie Hau's avatar Valerie Hau Committed by Automerger Merge Worker
Browse files

Only force send callbacks if they are registered am: 109ad715 am: a649923a...

Only force send callbacks if they are registered am: 109ad715 am: a649923a am: 917d984a am: fa5a3027

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/11923059

Change-Id: I414afc0cbe466cd313387b55988613641d77eac1
parents 6a2ded2b fa5a3027
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -154,6 +154,9 @@ status_t TransactionCompletedThread::registerPendingCallbackHandle(


status_t TransactionCompletedThread::finalizePendingCallbackHandles(
status_t TransactionCompletedThread::finalizePendingCallbackHandles(
        const std::deque<sp<CallbackHandle>>& handles) {
        const std::deque<sp<CallbackHandle>>& handles) {
    if (handles.empty()) {
        return NO_ERROR;
    }
    std::lock_guard lock(mMutex);
    std::lock_guard lock(mMutex);
    if (!mRunning) {
    if (!mRunning) {
        ALOGE("cannot add presented callback handle because the callback thread isn't running");
        ALOGE("cannot add presented callback handle because the callback thread isn't running");