core (client): fixed maximum connection tries to 3

This commit is contained in:
Goffi 2015-12-07 13:10:44 +01:00
commit 942fdc7fa1

View file

@ -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