summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/service.py
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-06-29 13:06:19 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2017-07-14 14:29:40 +0200
commitb5470367a74fb09fb30dc56fe6a22254fe25d18e (patch)
tree98e571ba0e71dcd52a9b19ef1f8131f6ef94f611 /src/leap/bitmask/vpn/service.py
parenta20fe33472698c5c95df799eeaf3a1c0f415e4d5 (diff)
[bug] don't raise exceptions stoping the VPN service
Let's also catch the exceptions raised by stopping services so bitmaskd can stop.
Diffstat (limited to 'src/leap/bitmask/vpn/service.py')
-rw-r--r--src/leap/bitmask/vpn/service.py5
1 files changed, 4 insertions, 1 deletions
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