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

Commit 45fc5696 authored by Rubin Xu's avatar Rubin Xu Committed by Gerrit Code Review
Browse files

Merge "Do not disconnect existing VPN if seamless handover fails"

parents 3423014c 307c5253
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;