Merge "Revert "Invert the order of event sending and VpnRunner.exit()"" am: 1660147b84 am: 880e944b9c am: b0d5eeb893
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2183496 Change-Id: Ia0716f7910b69c2223a4c491d9b3bb6a5f73f8fa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -4042,11 +4042,9 @@ public class Vpn {
|
|||||||
// To stop the VPN profile, the caller must be the current prepared package and must be
|
// To stop the VPN profile, the caller must be the current prepared package and must be
|
||||||
// running an Ikev2VpnProfile.
|
// running an Ikev2VpnProfile.
|
||||||
if (isCurrentIkev2VpnLocked(packageName)) {
|
if (isCurrentIkev2VpnLocked(packageName)) {
|
||||||
// Cache ownerUid to prevent the value being changed after performing VpnRunner.exit().
|
notifyVpnManagerVpnStopped(packageName, mOwnerUID);
|
||||||
final int ownerUid = mOwnerUID;
|
|
||||||
|
|
||||||
mVpnRunner.exit();
|
mVpnRunner.exit();
|
||||||
notifyVpnManagerVpnStopped(packageName, ownerUid);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user