Merge "Crash when powering off."

This commit is contained in:
Jean-Baptiste Queru
2010-08-23 13:24:19 -07:00
committed by Android Code Review

View File

@@ -133,6 +133,10 @@ public final class ShutdownThread extends Thread {
private static void beginShutdownSequence(Context context) {
synchronized (sIsStartedGuard) {
if (sIsStarted) {
Log.d(TAG, "Shutdown sequence already running, returning.");
return;
}
sIsStarted = true;
}