core: move XMPP keep-alife value to the constants

This commit is contained in:
souliane 2014-09-21 13:06:53 +02:00
commit a67c8094f5

View file

@ -65,7 +65,7 @@ class SatXMPPClient(client.XMPPClient):
"""Called after _authd"""
log.debug(_("XML stream is initialized"))
self.keep_alife = task.LoopingCall(self.xmlstream.send, " ") # Needed to avoid disconnection (specially with openfire)
self.keep_alife.start(180)
self.keep_alife.start(C.XMPP_KEEP_ALIFE)
self.disco = SatDiscoProtocol(self)
self.disco.setHandlerParent(self)