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

Commit 07287755 authored by Rubin Xu's avatar Rubin Xu Committed by android-build-merger
Browse files

Merge "Do not disconnect existing VPN if seamless handover fails" am: 45fc5696

am: 1c33b078

Change-Id: I500bfd3df094728c227ca68a4ee714dc829f2b27
parents faf3d2cc 1c33b078
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1141,7 +1141,11 @@ public class Vpn {
            }
        } catch (RuntimeException e) {
            IoUtils.closeQuietly(tun);
            // If this is not seamless handover, disconnect partially-established network when error
            // occurs.
            if (oldNetworkAgent != mNetworkAgent) {
                agentDisconnect();
            }
            // restore old state
            mConfig = oldConfig;
            mConnection = oldConnection;