diff options
author | Kali Kaneko <kali@leap.se> | 2017-09-10 21:08:37 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-09-10 22:11:40 +0200 |
commit | 7953bd1844235bf12ab82c030194c7a78c2b3b28 (patch) | |
tree | 262e9b5eae5b5cc30866718f5ea1b96e497b78c6 /src/leap/bitmask/vpn/tunnel.py | |
parent | 0331bcc09c5fb602366c93ee35c95a2e320b78bd (diff) |
[bug] avoid bogus failed status
there was an exception catched, AttributeError, that showed up as a
transient "failed" state.
- Resolves: #9044
Diffstat (limited to 'src/leap/bitmask/vpn/tunnel.py')
-rw-r--r-- | src/leap/bitmask/vpn/tunnel.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/leap/bitmask/vpn/tunnel.py b/src/leap/bitmask/vpn/tunnel.py index ae863203..64796e9c 100644 --- a/src/leap/bitmask/vpn/tunnel.py +++ b/src/leap/bitmask/vpn/tunnel.py @@ -88,8 +88,13 @@ class ConfiguredTunnel(object): @property def status(self): if not self._vpnproc: - return {'status': 'off', 'error': None} - return self._vpnproc.status + status = {'status': 'off', 'error': None} + else: + status = self._vpnproc.status + # Currently, there's some UI flickering that needs to be debugged #9049 + # XXX remove this print after that. + print ">>>STATUS", status + return status @property def traffic_status(self): |