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

Commit 9027191b authored by Jing Ji's avatar Jing Ji Committed by Gerrit Code Review
Browse files

Merge "Fix a racing condition in ProcessRecord"

parents 7fcab2db 178460c6
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));
    }