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

Commit 1c33b078 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

Change-Id: I76f63a9d1aa6e8fcee8038db9cfd7be2c2d6c8c9
parents c3c21f91 45fc5696
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;