core, bridge, frontends: renamed asyncConnect to connect, and added options parameters (not used yet)
This commit is contained in:
parent
6a8102b109
commit
b5f1e45d4e
1 changed files with 34 additions and 29 deletions
|
|
@ -109,7 +109,7 @@ class ProfileManager(object):
|
|||
def _changeXMPPPasswordCb(self, data, profile):
|
||||
xmpp_password = data[xml_tools.formEscape('xmpp_password')]
|
||||
d = self.host.memory.setParam("Password", xmpp_password, "Connection", profile_key=profile)
|
||||
d.addCallback(lambda dummy: self.host.asyncConnect(profile))
|
||||
d.addCallback(lambda dummy: self.host.connect(profile))
|
||||
d.addCallback(lambda dummy: {})
|
||||
d.addErrback(lambda dummy: self._changeXMPPPassword({}, profile))
|
||||
return d
|
||||
|
|
|
|||
Loading…
Reference in a new issue