From 942fdc7fa1e09887b1a3878e0599d26d30d01787 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 7 Dec 2015 13:10:44 +0100 Subject: [PATCH] core (client): fixed maximum connection tries to 3 --- src/core/xmpp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/xmpp.py b/src/core/xmpp.py index 9ee9de5f..1f109b37 100644 --- a/src/core/xmpp.py +++ b/src/core/xmpp.py @@ -39,6 +39,7 @@ class SatXMPPClient(client.XMPPClient): # 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