changeset 1722:4308bca92922

core (client): fixed maximum connection tries to 3
author Goffi <goffi@goffi.org>
date Mon, 07 Dec 2015 13:10:44 +0100
parents f6533aa7da7a
children 5632c5350296
files src/core/xmpp.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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