Mercurial > libervia-backend
diff src/core/xmpp.py @ 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 | 772c8edd1057 |
children | c1be6363bfab |
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