diff options
author | kali <kali@leap.se> | 2017-08-08 09:07:09 -0700 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-08-14 18:10:31 -0400 |
commit | 6acf5ddfaf8e091f6b05b814128ac4f38b19c191 (patch) | |
tree | 20a1fb8e7a1b6345434ea8901a3fd5120d5b9bbc /src/leap/bitmask/vpn/service.py | |
parent | b9f651fb98fd639697fafb23f669fd05588b4345 (diff) |
[bug] proper vpn shutdown in osx bundles
the restarting flag was not being set.
- Resolves: #8959
Diffstat (limited to 'src/leap/bitmask/vpn/service.py')
-rw-r--r-- | src/leap/bitmask/vpn/service.py | 4 |
1 files changed, 3 insertions, 1 deletions
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() |