From 452ed530193a5864cbf36036f075060f3ff0cb47 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 4 Dec 2011 19:11:39 +0900 Subject: [PATCH] after initial auth, set self.hkey so full sync works --- aqt/sync.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aqt/sync.py b/aqt/sync.py index 856daca8f..fae59c3de 100755 --- a/aqt/sync.py +++ b/aqt/sync.py @@ -197,13 +197,13 @@ class SyncThread(QThread): def _sync(self): if self.auth: # need to authenticate and obtain host key - hkey = self.server.hostKey(*self.auth) - if not hkey: + self.hkey = self.server.hostKey(*self.auth) + if not self.hkey: # provided details were invalid return self.fireEvent("badAuth") else: # write new details and tell calling thread to save - self.fireEvent("newKey", hkey) + self.fireEvent("newKey", self.hkey) # run sync and check state ret = self.client.sync() if ret == "badAuth":