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

Commit 6da8968f authored by Jing Ji's avatar Jing Ji Committed by android-build-merger
Browse files

Merge "Fix a racing condition in ProcessRecord"

am: 9027191b

Change-Id: I6bfef15873b88a2bed739ee6cb238555d96deaad
parents 076cd7aa 9027191b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -446,7 +446,9 @@ public final class BroadcastQueue {
        mHandler.removeCallbacksAndMessages(msgToken);
        // ...then schedule the removal of the token after the extended timeout
        mHandler.postAtTime(() -> {
            synchronized (mService) {
                app.removeAllowBackgroundActivityStartsToken(r);
            }
        }, msgToken, (r.receiverTime + mConstants.ALLOW_BG_ACTIVITY_START_TIMEOUT));
    }