Loading services/core/java/com/android/server/connectivity/Vpn.java +36 −33 Original line number Diff line number Diff line Loading @@ -3210,10 +3210,7 @@ public class Vpn { return; } if (mSession != null && mMobikeEnabled) { Log.d( TAG, "IKE Session has mobility. Delay handleSessionLost for losing network " Log.d(TAG, "Schedule a delay handleSessionLost for losing network " + network + " on session with token " + mCurrentToken); Loading @@ -3226,7 +3223,16 @@ public class Vpn { mExecutor.schedule( () -> { if (isActiveToken(token)) { handleSessionLost(null /* exception */, network); handleSessionLost(new IkeNetworkLostException(network), network); synchronized (Vpn.this) { // Ignore stale runner. if (mVpnRunner != this) return; updateState(DetailedState.DISCONNECTED, "Network lost"); } } else { Log.d( TAG, Loading @@ -3241,10 +3247,7 @@ public class Vpn { }, NETWORK_LOST_TIMEOUT_MS, TimeUnit.MILLISECONDS); } else { Log.d(TAG, "Call handleSessionLost for losing network " + network); handleSessionLost(null /* exception */, network); } } private void cancelHandleNetworkLostTimeout() { Loading Loading
services/core/java/com/android/server/connectivity/Vpn.java +36 −33 Original line number Diff line number Diff line Loading @@ -3210,10 +3210,7 @@ public class Vpn { return; } if (mSession != null && mMobikeEnabled) { Log.d( TAG, "IKE Session has mobility. Delay handleSessionLost for losing network " Log.d(TAG, "Schedule a delay handleSessionLost for losing network " + network + " on session with token " + mCurrentToken); Loading @@ -3226,7 +3223,16 @@ public class Vpn { mExecutor.schedule( () -> { if (isActiveToken(token)) { handleSessionLost(null /* exception */, network); handleSessionLost(new IkeNetworkLostException(network), network); synchronized (Vpn.this) { // Ignore stale runner. if (mVpnRunner != this) return; updateState(DetailedState.DISCONNECTED, "Network lost"); } } else { Log.d( TAG, Loading @@ -3241,10 +3247,7 @@ public class Vpn { }, NETWORK_LOST_TIMEOUT_MS, TimeUnit.MILLISECONDS); } else { Log.d(TAG, "Call handleSessionLost for losing network " + network); handleSessionLost(null /* exception */, network); } } private void cancelHandleNetworkLostTimeout() { Loading