From 54802bf9c53fc32cfcceb23045c5aeb313c19829 Mon Sep 17 00:00:00 2001 From: kali Date: Fri, 18 Jan 2013 08:45:35 +0900 Subject: fix network checker attr in wizard --- src/leap/baseapp/network.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/leap') 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, -- cgit v1.2.3