From 6acf5ddfaf8e091f6b05b814128ac4f38b19c191 Mon Sep 17 00:00:00 2001 From: kali Date: Tue, 8 Aug 2017 09:07:09 -0700 Subject: [bug] proper vpn shutdown in osx bundles the restarting flag was not being set. - Resolves: #8959 --- src/leap/bitmask/vpn/service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/leap/bitmask/vpn/service.py') diff --git a/src/leap/bitmask/vpn/service.py b/src/leap/bitmask/vpn/service.py index 0750a193..7cd595a0 100644 --- a/src/leap/bitmask/vpn/service.py +++ b/src/leap/bitmask/vpn/service.py @@ -123,7 +123,9 @@ class VPNService(HookableService): if not fw_ok: self.log.error("Firewall: error stopping") - if not self._tunnel or self._tunnel.status['status'] is not 'on': + if not self._tunnel: + # XXX this avoids to shutdown anything that was in process. + # or self._tunnel.status['status'] is not 'on': raise Exception('VPN was not running') vpn_ok = self._tunnel.stop() -- cgit v1.2.3