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

Commit 3df00e17 authored by Etan Cohen's avatar Etan Cohen Committed by Android (Google) Code Review
Browse files

Merge "[Provider Model] Check against race condition"

parents 126edfe8 dd295df6
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -210,7 +210,8 @@ public class ConnectivitySubsystemsRecoveryManager {
    }

    private void checkIfAllSubsystemsRestartsAreDone() {
        if (!mWifiRestartInProgress && !mTelephonyRestartInProgress) {
        if (!mWifiRestartInProgress && !mTelephonyRestartInProgress
                && mCurrentRecoveryCallback != null) {
            mCurrentRecoveryCallback.onSubsystemRestartOperationEnd();
            mCurrentRecoveryCallback = null;
        }
@@ -283,8 +284,10 @@ public class ConnectivitySubsystemsRecoveryManager {
                    stopTrackingTelephonyRestart();
                    mWifiRestartInProgress = false;
                    mTelephonyRestartInProgress = false;
                    if (mCurrentRecoveryCallback != null) {
                        mCurrentRecoveryCallback.onSubsystemRestartOperationEnd();
                        mCurrentRecoveryCallback = null;
                    }
                }, RESTART_TIMEOUT_MS);
            }
        });