summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/service.py
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-09-18 19:53:17 +0200
committerKali Kaneko <kali@leap.se>2017-09-20 17:56:49 +0200
commit79e9f3c69b4eb061490d6a12a52888abc429542e (patch)
treebab13194d73dc75218a1575d52888c0f563e508c /src/leap/bitmask/vpn/service.py
parentd0e4444555df79978aed5cd6c9548e2fd1c63936 (diff)
[feat] detect if pkexec is present in the system
Check it before starting the vpn. - Resolves: #8895
Diffstat (limited to 'src/leap/bitmask/vpn/service.py')
-rw-r--r--src/leap/bitmask/vpn/service.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/bitmask/vpn/service.py b/src/leap/bitmask/vpn/service.py
index 1ecfa797..36699712 100644
--- a/src/leap/bitmask/vpn/service.py
+++ b/src/leap/bitmask/vpn/service.py
@@ -106,6 +106,10 @@ class VPNService(HookableService):
exc = Exception("VPN can't start, a provider is needed")
exc.expected = True
raise exc
+ if not is_service_ready(domain):
+ exc = Exception("VPN is not ready")
+ exc.expected = True
+ raise exc
yield self._setup(domain)