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

Commit 67b1a02d authored by Li Li's avatar Li Li Committed by Android (Google) Code Review
Browse files

Merge "Fix race between app crash and broadcast"

parents cdbc08eb eae5e2b4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -349,6 +349,11 @@ public final class BroadcastQueue {
                prr.removeCurReceiver(r);
            }
        }

        // if something bad happens here, launch the app and try again
        if (app.isKilled()) {
            throw new RemoteException("app gets killed during broadcasting");
        }
    }

    public boolean sendPendingBroadcastsLocked(ProcessRecord app) {