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

Commit 178460c6 authored by Jing Ji's avatar Jing Ji
Browse files

Fix a racing condition in ProcessRecord

Bug: 141602830
Bug: 144808687
Test: n/a
Change-Id: I9d67d0733a2eb7f42e23b22ccdc3f3d9b2526ef4
Merged-In: I9d67d0733a2eb7f42e23b22ccdc3f3d9b2526ef4
parent 39083517
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));
    }