summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-07-20 23:16:48 +0200
committerRuben Pollan <meskio@sindominio.net>2017-07-20 23:16:48 +0200
commit1237a7ca0e8e25ac9a49e2cb3bd8c296236dfcfa (patch)
treeddeded3f1c2acb955689a87eafc7d1d605a211ef
parent4025e0d8dd297778f5f5252de943934554bd88a4 (diff)
[bug] check if the helpers are installed before testing the firewall
In case of the helpers not installed it was crashing the VPNService.
-rw-r--r--src/leap/bitmask/vpn/service.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/service.py b/src/leap/bitmask/vpn/service.py
index e9b5add8..cfa00229 100644
--- a/src/leap/bitmask/vpn/service.py
+++ b/src/leap/bitmask/vpn/service.py
@@ -65,7 +65,7 @@ class VPNService(HookableService):
else:
self._basepath = basepath
- if self._firewall.is_up():
+ if helpers.check() and self._firewall.is_up():
self._firewall.stop()
def startService(self):