Mercurial > libervia-backend
diff src/core/xmpp.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 | 4308bca92922 |
children | 4c48468ead4c |
line wrap: on
line diff
--- a/src/core/xmpp.py Mon Dec 07 15:57:33 2015 +0100 +++ b/src/core/xmpp.py Mon Dec 07 19:56:12 2015 +0100 @@ -34,12 +34,12 @@ class SatXMPPClient(client.XMPPClient): implements(iwokkel.IDisco) - def __init__(self, host_app, profile, user_jid, password, host=None, port=C.XMPP_C2S_PORT): + def __init__(self, host_app, profile, user_jid, password, host=None, port=C.XMPP_C2S_PORT, max_retries=C.XMPP_MAX_RETRIES): # XXX: DNS SRV records are checked when the host is not specified. # If no SRV record is found, the host is directly extracted from the JID. client.XMPPClient.__init__(self, user_jid, password, host or None, port or C.XMPP_C2S_PORT) self.factory.clientConnectionLost = self.connectionLost - self.factory.maxRetries = 2 + self.factory.maxRetries = max_retries self.__connected = False self.profile = profile self.host_app = host_app