summaryrefslogtreecommitdiff
path: root/src/leap/bitmask
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r--src/leap/bitmask/core/service.py5
-rw-r--r--src/leap/bitmask/vpn/service.py5
2 files changed, 8 insertions, 2 deletions
diff --git a/src/leap/bitmask/core/service.py b/src/leap/bitmask/core/service.py
index 2da1ee4..6244b17 100644
--- a/src/leap/bitmask/core/service.py
+++ b/src/leap/bitmask/core/service.py
@@ -246,7 +246,10 @@ class BitmaskBackend(configurable.ConfigurableService):
def do_stop(self):
for service in self:
- service.stopService()
+ try:
+ service.stopService()
+ except Exception as e:
+ log.error('Error stopping service... {0!r}'.format(e))
return self.core_commands.do_stop()
# Service Toggling
diff --git a/src/leap/bitmask/vpn/service.py b/src/leap/bitmask/vpn/service.py
index 343a2d3..70c2624 100644
--- a/src/leap/bitmask/vpn/service.py
+++ b/src/leap/bitmask/vpn/service.py
@@ -67,7 +67,10 @@ class VPNService(HookableService):
super(VPNService, self).startService()
def stopService(self):
- self.stop_vpn()
+ try:
+ self.stop_vpn()
+ except Exception as e:
+ self.log.error('Error stopping vpn service... {0!r}'.format(e))
super(VPNService, self).stopService()
@defer.inlineCallbacks