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

Commit 239ab1c9 authored by Chris Tate's avatar Chris Tate Committed by Android (Google) Code Review
Browse files

Merge "More fixes towards the race conditions in AMS" into oc-mr1-dev

parents fab2a65c 9450069d
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -312,7 +312,11 @@ class AppErrors {
            // and then the delayed summary kill will be a no-op.
            // and then the delayed summary kill will be a no-op.
            final ProcessRecord p = proc;
            final ProcessRecord p = proc;
            mService.mHandler.postDelayed(
            mService.mHandler.postDelayed(
                    () -> killAppImmediateLocked(p, "forced", "killed for invalid state"),
                    () -> {
                        synchronized (mService) {
                            killAppImmediateLocked(p, "forced", "killed for invalid state");
                        }
                    },
                    5000L);
                    5000L);
        }
        }
    }
    }