quick frontend: asyncConnect is now used, to be sure that roster is available before continuing profile plugging
This commit is contained in:
parent
14d53e09ac
commit
faac62cfd2
1 changed files with 5 additions and 2 deletions
|
|
@ -149,8 +149,11 @@ class QuickApp(object):
|
|||
def plug_profile_4(self, watched, autoconnect, profile):
|
||||
if autoconnect and not self.bridge.isConnected(profile):
|
||||
#Does the user want autoconnection ?
|
||||
self.bridge.connect(profile)
|
||||
|
||||
self.bridge.asyncConnect(profile, callback=lambda: self.plug_profile_5(watched, autoconnect, profile), errback=lambda ignore: error(_('Error during autoconnection')))
|
||||
else:
|
||||
self.plug_profile_5(watched, autoconnect, profile)
|
||||
|
||||
def plug_profile_5(self, watched, autoconnect, profile):
|
||||
self.profiles[profile]['watched'] = watched.split() #TODO: put this in a plugin
|
||||
|
||||
## misc ##
|
||||
|
|
|
|||
Loading…
Reference in a new issue