summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/baseapp/network.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/baseapp/network.py b/src/leap/baseapp/network.py
index a67f6340..d5685504 100644
--- a/src/leap/baseapp/network.py
+++ b/src/leap/baseapp/network.py
@@ -21,12 +21,13 @@ class NetworkCheckerAppMixin(object):
def __init__(self, *args, **kwargs):
provider = kwargs.pop('provider', None)
+ self.network_checker = None
if provider:
self.init_network_checker(provider)
def init_network_checker(self, provider):
null_check(provider, "provider_domain")
- if not hasattr(self, 'network_checker'):
+ if not self.network_checker:
self.network_checker = NetworkCheckerThread(
error_cb=self.networkError.emit,
debug=self.debugmode,