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

Commit 2149ad57 authored by Robin Lee's avatar Robin Lee Committed by android-build-merger
Browse files

Merge "Skip lockdown setup if user is not up yet" into nyc-dev

am: d646b3d6

* commit 'd646b3d6':
  Skip lockdown setup if user is not up yet
parents a5a9a431 d646b3d6
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -3253,8 +3253,12 @@ public class ConnectivityService extends IConnectivityManager.Stub
            }
            int user = UserHandle.getUserId(Binder.getCallingUid());
            synchronized(mVpns) {
                setLockdownTracker(new LockdownVpnTracker(mContext, mNetd, this, mVpns.get(user),
                            profile));
                Vpn vpn = mVpns.get(user);
                if (vpn == null) {
                    Slog.w(TAG, "VPN for user " + user + " not ready yet. Skipping lockdown");
                    return false;
                }
                setLockdownTracker(new LockdownVpnTracker(mContext, mNetd, this, vpn, profile));
            }
        } else {
            setLockdownTracker(null);