summaryrefslogtreecommitdiff
path: root/src/leap/baseapp
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-10-05 21:21:22 +0900
committerkali <kali@leap.se>2012-10-05 21:21:22 +0900
commit1cbf954d9eda71cabfa58811c09bc63cfe9465d5 (patch)
treeef7b869fb7f59c9f8cbeb328427a8f9ac854aa7c /src/leap/baseapp
parent31c0afa5eb9bc7566ca39099520e8adc7b531e22 (diff)
add comments to netchecks
Diffstat (limited to 'src/leap/baseapp')
-rw-r--r--src/leap/baseapp/network.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/leap/baseapp/network.py b/src/leap/baseapp/network.py
index f1859c7a..fbf9376f 100644
--- a/src/leap/baseapp/network.py
+++ b/src/leap/baseapp/network.py
@@ -3,7 +3,7 @@ from __future__ import print_function
import logging
logger = logging.getLogger(name=__name__)
-from leap.base.network import NetworkChecker
+from leap.base.network import NetworkCheckerThread
#from leap.baseapp.dialogs import ErrorDialog
@@ -14,9 +14,12 @@ class NetworkCheckerAppMixin(object):
"""
def __init__(self, *args, **kwargs):
- self.network_checker = NetworkChecker(
+ self.network_checker = NetworkCheckerThread(
+ # XXX watcher? remove -----
watcher_cb=self.newLogLine.emit,
- error_cb=self.handle_network_error,
+ # XXX what callback? ------
+ error_cb=None,
debug=self.debugmode)
+ # XXX move run_checks to slot
self.network_checker.run_checks()