diff 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
line wrap: on
line diff
--- a/src/plugins/plugin_misc_account.py	Mon Dec 07 15:57:33 2015 +0100
+++ b/src/plugins/plugin_misc_account.py	Mon Dec 07 19:56:12 2015 +0100
@@ -541,7 +541,7 @@
 
         d = self.registerAccount(None, password, jid_s, jid_s)
         d.addCallback(lambda dummy: self.host.memory.getProfileName(jid_s))  # checks if the profile has been successfuly created
-        d.addCallback(self.host.asyncConnect, password)
+        d.addCallback(self.host.asyncConnect, password, 0)
 
         def removeProfile(failure):  # profile has been successfully created but the XMPP credentials are wrong!
             log.debug("Removing previously auto-created profile: %s" % failure.getErrorMessage())