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

Commit b25a76f5 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

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

Change-Id: I9ad9b159f4c88db7e3d1bee13c74f579859df7de
parents 357a3f32 a649923a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -154,6 +154,9 @@ status_t TransactionCompletedThread::registerPendingCallbackHandle(

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