diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2017-04-20 14:43:30 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-04-20 14:43:35 +0200 |
commit | 9c1d1bd3da383a22702abae4470513be34572d3d (patch) | |
tree | 8883c63ab2da666d93d7001d47c72eb0aff792db /src/leap/bitmask/vpn/service.py | |
parent | 3ebaa03a307eab2a0a4d31efd143326d6ea592b2 (diff) |
[bug] fix enabling of vpn service
- Resolves: #8845
Diffstat (limited to 'src/leap/bitmask/vpn/service.py')
-rw-r--r-- | src/leap/bitmask/vpn/service.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/leap/bitmask/vpn/service.py b/src/leap/bitmask/vpn/service.py index ec9e065b..b04ea9f6 100644 --- a/src/leap/bitmask/vpn/service.py +++ b/src/leap/bitmask/vpn/service.py @@ -90,6 +90,9 @@ class VPNService(HookableService): # TODO ----------------------------- # when shutting down the main bitmaskd daemon, this should be called. + if not self._vpn: + raise Exception('VPN was not running') + if self._started: self._vpn.stop() self._started = False |