Mercurial > libervia-backend
diff src/core/xmpp.py @ 1211:9355f48f979e
core: move XMPP keep-alife value to the constants
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 21 Sep 2014 13:06:53 +0200 |
parents | 2df6427a5299 |
children | 8b891f9be183 |
line wrap: on
line diff
--- a/src/core/xmpp.py Thu Sep 18 11:43:21 2014 +0200 +++ b/src/core/xmpp.py Sun Sep 21 13:06:53 2014 +0200 @@ -65,7 +65,7 @@ """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)