Merge "Crash when powering off."
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user