From 109dcbe31064c3f6ba96309c39277638bfc82b9e Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 13 Feb 2018 22:40:50 +0100 Subject: [bug] do not attempt to stop a non running looping call --- src/leap/bitmask/vpn/service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/leap/bitmask/vpn/service.py b/src/leap/bitmask/vpn/service.py index 9faedd95..afa75e5e 100644 --- a/src/leap/bitmask/vpn/service.py +++ b/src/leap/bitmask/vpn/service.py @@ -179,7 +179,8 @@ class VPNService(HookableService): if not vpn_ok: raise Exception('Error stopping VPN') - self.watchdog.stop() + if self.watchdog.running: + self.watchdog.stop() return {'result': 'vpn stopped'} def _set_autostart(self, status): -- cgit v1.2.3