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

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

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

Change-Id: I7e8471a2b15b487612a682526f9e45a20136ac54
parents f174709b 109ad715
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");