diff options
author | Kali Kaneko <kali@leap.se> | 2017-08-28 18:00:47 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-08-30 16:18:51 -0400 |
commit | 2ff3f6adf7ce24cf31f5ad398cebddef0ff0b0a1 (patch) | |
tree | 7696c70374da46c364eb3a786bef86c087884b23 /src/leap/bitmask/vpn | |
parent | b9fff80022e15560151f523015cb5bf73bd3cff1 (diff) |
[bug] return if cannot parse state
Diffstat (limited to 'src/leap/bitmask/vpn')
-rw-r--r-- | src/leap/bitmask/vpn/fw/firewall.py | 2 | ||||
-rw-r--r-- | src/leap/bitmask/vpn/management.py | 1 | ||||
-rw-r--r-- | src/leap/bitmask/vpn/process.py | 2 |
3 files changed, 3 insertions, 2 deletions
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 |