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

Commit 7001c4e5 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "ShutdownThread: Set property to indicate radio shutdown" into ics

parents f0ca47a2 b838a337
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ public final class ShutdownThread extends Thread {

    // Provides shutdown assurance in case the system_server is killed
    public static final String SHUTDOWN_ACTION_PROPERTY = "sys.shutdown.requested";
    public static final String RADIO_SHUTDOWN_PROPERTY = "sys.radio.shutdown";

    // static instance of this thread
    private static final ShutdownThread sInstance = new ShutdownThread();
@@ -364,6 +365,7 @@ public final class ShutdownThread extends Thread {
            radioOff = true;
        }

        SystemProperties.set(RADIO_SHUTDOWN_PROPERTY, "true");
        Log.i(TAG, "Waiting for Bluetooth and Radio...");
        
        // Wait a max of 32 seconds for clean shutdown