From 2ff3f6adf7ce24cf31f5ad398cebddef0ff0b0a1 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Mon, 28 Aug 2017 18:00:47 -0400 Subject: [bug] return if cannot parse state --- src/leap/bitmask/vpn/fw/firewall.py | 2 +- src/leap/bitmask/vpn/management.py | 1 + src/leap/bitmask/vpn/process.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/leap/bitmask/vpn/fw/firewall.py b/src/leap/bitmask/vpn/fw/firewall.py index f4325c7..5100a5e 100644 --- a/src/leap/bitmask/vpn/fw/firewall.py +++ b/src/leap/bitmask/vpn/fw/firewall.py @@ -123,7 +123,7 @@ class _LinuxFirewallManager(object): log.failure('Error launching the firewall') finally: log.debug(result) - print "LAUNCHED FIREWALL" + print "LAUNCHED FIREWALL", result emit_async(catalog.VPN_STATUS_CHANGED) return True diff --git a/src/leap/bitmask/vpn/management.py b/src/leap/bitmask/vpn/management.py index e692dc0..6a6b1fc 100644 --- a/src/leap/bitmask/vpn/management.py +++ b/src/leap/bitmask/vpn/management.py @@ -156,6 +156,7 @@ class ManagementProtocol(LineReceiver): ts, state = data[:2] except Exception as exc: log.error('Failure parsing data: %s' % exc) + return if state != self.state: now = time.time() diff --git a/src/leap/bitmask/vpn/process.py b/src/leap/bitmask/vpn/process.py index 4a0bb5a..a2b384e 100644 --- a/src/leap/bitmask/vpn/process.py +++ b/src/leap/bitmask/vpn/process.py @@ -110,7 +110,7 @@ class _VPNProcess(protocol.ProcessProtocol): def outReceived(self, data): # use this to debug failed invocations. - # print data + print("DEBUG VPN: %s" % data) pass @defer.inlineCallbacks -- cgit v1.2.3