summaryrefslogtreecommitdiff
path: root/src/leap/crypto/srpauth.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-07-25 13:28:53 -0300
committerdrebs <drebs@leap.se>2013-07-25 14:08:28 -0300
commit4e86d1bd29890cfb7bc02f5bcf434e175d810d1a (patch)
treee2589621a8eb2f9286b9605749d27ccab07d1cc0 /src/leap/crypto/srpauth.py
parent53aea7c4e796ebd0772cbf27c6fe8a3878c5e083 (diff)
Make calls to leap.common.events asynchronous.
Diffstat (limited to 'src/leap/crypto/srpauth.py')
-rw-r--r--src/leap/crypto/srpauth.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/leap/crypto/srpauth.py b/src/leap/crypto/srpauth.py
index 6474bdbb..53f6012d 100644
--- a/src/leap/crypto/srpauth.py
+++ b/src/leap/crypto/srpauth.py
@@ -385,7 +385,9 @@ class SRPAuth(QtCore.QObject):
raise SRPAuthBadDataFromServer(self.tr("Problem getting data "
"from server"))
- events_signal(proto.CLIENT_UID, content=uid)
+ events_signal(
+ proto.CLIENT_UID, content=uid,
+ reqckb=lambda resp: None) # make the rpc call async
return M2
@@ -424,7 +426,9 @@ class SRPAuth(QtCore.QObject):
"verification "
"failed"))
- events_signal(proto.CLIENT_SESSION_ID, content=session_id)
+ events_signal(
+ proto.CLIENT_SESSION_ID, content=session_id,
+ reqckb=lambda resp: None) # make the rpc call async
self.set_session_id(session_id)