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

Commit d646b3d6 authored by Robin Lee's avatar Robin Lee Committed by Android (Google) Code Review
Browse files

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

parents ec09996b 18566c1b
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);