commit | 94a93e3bcda97fbe4a3a52b19a904e5c26259a37 | [log] [tgz] |
---|---|---|
author | Lucas Lin <lucaslin@google.com> | Thu Dec 08 06:17:18 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Dec 08 06:17:18 2022 +0000 |
tree | fb62645ca5e277ee160a496b2acd5952903d493b | |
parent | 54b4332901fb99693238e7d5e0db1f43960d5d56 [diff] | |
parent | 88c8af5a65006254bb70714d09d604f3191fc3b9 [diff] |
Merge "Clear underlying network info in onDefaultNetworkLost()" am: a4ee732c81 am: 88c8af5a65 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2317019 Change-Id: I361624b0babeb4ba638ff55f3ce3a8d6e9dfc06c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/services/core/java/com/android/server/connectivity/Vpn.java b/services/core/java/com/android/server/connectivity/Vpn.java index bc9bc03..4fcde97 100644 --- a/services/core/java/com/android/server/connectivity/Vpn.java +++ b/services/core/java/com/android/server/connectivity/Vpn.java
@@ -3475,6 +3475,8 @@ return; } else { mActiveNetwork = null; + mUnderlyingNetworkCapabilities = null; + mUnderlyingLinkProperties = null; } if (mScheduledHandleNetworkLostFuture != null) { @@ -3664,9 +3666,6 @@ scheduleRetryNewIkeSession(); } - mUnderlyingNetworkCapabilities = null; - mUnderlyingLinkProperties = null; - // Close all obsolete state, but keep VPN alive incase a usable network comes up. // (Mirrors VpnService behavior) Log.d(TAG, "Resetting state for token: " + mCurrentToken);