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

Commit 6007cae4 authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Android (Google) Code Review
Browse files

Merge "Don't clear restart counter when bringing up the service." into oc-dev

parents 6d3747eb 03d0f819
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1728,7 +1728,7 @@ public final class ActiveServices {
            return null;
        }

        if (!whileRestarting && r.restartDelay > 0) {
        if (!whileRestarting && mRestartingServices.contains(r)) {
            // If waiting for a restart, then do nothing.
            return null;
        }
@@ -1740,7 +1740,6 @@ public final class ActiveServices {
        // We are now bringing the service up, so no longer in the
        // restarting state.
        if (mRestartingServices.remove(r)) {
            r.resetRestartCounter();
            clearRestartingIfNeededLocked(r);
        }