Merge "VPN: Explicitly handle IAE from updating underlying network" into main am: a6cf261f85
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2640153 Change-Id: If950624ed7d7f23c3464f267ed8ce48fee4286e1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3346,7 +3346,7 @@ public class Vpn {
|
||||
// Transforms do not need to be persisted; the IkeSession will keep
|
||||
// them alive for us
|
||||
mIpSecManager.applyTunnelModeTransform(mTunnelIface, direction, transform);
|
||||
} catch (IOException e) {
|
||||
} catch (IOException | IllegalArgumentException e) {
|
||||
Log.d(TAG, "Transform application failed for token " + token, e);
|
||||
onSessionLost(token, e);
|
||||
}
|
||||
@@ -3440,7 +3440,7 @@ public class Vpn {
|
||||
mTunnelIface, IpSecManager.DIRECTION_IN, inTransform);
|
||||
mIpSecManager.applyTunnelModeTransform(
|
||||
mTunnelIface, IpSecManager.DIRECTION_OUT, outTransform);
|
||||
} catch (IOException e) {
|
||||
} catch (IOException | IllegalArgumentException e) {
|
||||
Log.d(TAG, "Transform application failed for token " + token, e);
|
||||
onSessionLost(token, e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user