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

Commit 61560786 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Remove lock inversion in LegacyVpnRunner" am: 303762dc am: 9c142102 am: a97a1d61

Change-Id: Ide03031fe750df284d10b3448c4c1fec0674b386
parents d69e3fe7 a97a1d61
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -2563,7 +2563,7 @@ public class Vpn {
        public void exitIfOuterInterfaceIs(String interfaze) {
            if (interfaze.equals(mOuterInterface)) {
                Log.i(TAG, "Legacy VPN is going down with " + interfaze);
                exit();
                exitVpnRunner();
            }
        }

@@ -2572,6 +2572,10 @@ public class Vpn {
        public void exitVpnRunner() {
            // We assume that everything is reset after stopping the daemons.
            interrupt();

            // Always disconnect. This may be called again in cleanupVpnStateLocked() if
            // exitVpnRunner() was called from exit(), but it will be a no-op.
            agentDisconnect();
            try {
                mContext.unregisterReceiver(mBroadcastReceiver);
            } catch (IllegalArgumentException e) {}
@@ -2794,7 +2798,7 @@ public class Vpn {
            } catch (Exception e) {
                Log.i(TAG, "Aborting", e);
                updateState(DetailedState.FAILED, e.getMessage());
                exit();
                exitVpnRunner();
            }
        }