comparison src/plugins/plugin_misc_account.py @ 1725:c1be6363bfab

core, plugin misc_account: set XMPP connection max retries to 0 when checking if an external account exists
author souliane <souliane@mailoo.org>
date Mon, 07 Dec 2015 19:56:12 +0100
parents 0d972af37ff5
children 2ebe66a96d05
comparison
equal deleted inserted replaced
1724:13e43b2cd7a2 1725:c1be6363bfab
539 else: 539 else:
540 raise exceptions.ConflictError 540 raise exceptions.ConflictError
541 541
542 d = self.registerAccount(None, password, jid_s, jid_s) 542 d = self.registerAccount(None, password, jid_s, jid_s)
543 d.addCallback(lambda dummy: self.host.memory.getProfileName(jid_s)) # checks if the profile has been successfuly created 543 d.addCallback(lambda dummy: self.host.memory.getProfileName(jid_s)) # checks if the profile has been successfuly created
544 d.addCallback(self.host.asyncConnect, password) 544 d.addCallback(self.host.asyncConnect, password, 0)
545 545
546 def removeProfile(failure): # profile has been successfully created but the XMPP credentials are wrong! 546 def removeProfile(failure): # profile has been successfully created but the XMPP credentials are wrong!
547 log.debug("Removing previously auto-created profile: %s" % failure.getErrorMessage()) 547 log.debug("Removing previously auto-created profile: %s" % failure.getErrorMessage())
548 self.host.memory.asyncDeleteProfile(jid_s) 548 self.host.memory.asyncDeleteProfile(jid_s)
549 raise failure 549 raise failure