diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-03-12 14:08:47 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-03-12 14:08:47 -0300 |
commit | cabfa92593d0c21f63f218842af8ed2bfba77cde (patch) | |
tree | 64769f32b2835c65187cfd81ec4ea709a8e02906 /src/leap | |
parent | 70ab05982ab778b6d2e949b186b9932b90115a8d (diff) |
Make login in parallel
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/gui/mainwindow.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py index 882a5a99..3af87366 100644 --- a/src/leap/gui/mainwindow.py +++ b/src/leap/gui/mainwindow.py @@ -24,6 +24,7 @@ import random import keyring from PySide import QtCore, QtGui +from functools import partial from ui_mainwindow import Ui_MainWindow from leap.config.providerconfig import ProviderConfig @@ -538,7 +539,10 @@ class MainWindow(QtGui.QMainWindow): self._srp_auth.logout_finished.connect( self._done_logging_out) - self._srp_auth.authenticate(username, password) + auth_partial = partial(self._srp_auth.authenticate, + username, + password) + self._checker_thread.add_checks([auth_partial]) else: self._set_status(data[self._provider_bootstrapper.ERROR_KEY]) self._login_set_enabled(True) @@ -760,7 +764,6 @@ class MainWindow(QtGui.QMainWindow): if __name__ == "__main__": import signal - from functools import partial def sigint_handler(*args, **kwargs): logger.debug('SIGINT catched. shutting down...') |