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

Commit 70736a6d authored by Mike Lockwood's avatar Mike Lockwood Committed by Android (Google) Code Review
Browse files

Merge "Avoid starting multiple threads in ShutdownThread" into gingerbread

parents 739bf285 d67b2364
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -133,6 +133,10 @@ public final class ShutdownThread extends Thread {

    private static void beginShutdownSequence(Context context) {
        synchronized (sIsStartedGuard) {
            if (sIsStarted) {
                Log.d(TAG, "Request to shutdown already running, returning.");
                return;
            }
            sIsStarted = true;
        }