# HG changeset patch # User Goffi # Date 1449490244 -3600 # Node ID 4308bca92922ae4660906484846b2a1ef9ba08cf # Parent f6533aa7da7ac61e8663c04ead960a199b8ae1e4 core (client): fixed maximum connection tries to 3 diff -r f6533aa7da7a -r 4308bca92922 src/core/xmpp.py --- a/src/core/xmpp.py Mon Dec 07 13:10:44 2015 +0100 +++ b/src/core/xmpp.py Mon Dec 07 13:10:44 2015 +0100 @@ -39,6 +39,7 @@ # 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.__connected = False self.profile = profile self.host_app = host_app