comparison 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
comparison
equal deleted inserted replaced
1210:53037afd413e 1211:9355f48f979e
63 63
64 def streamInitialized(self): 64 def streamInitialized(self):
65 """Called after _authd""" 65 """Called after _authd"""
66 log.debug(_("XML stream is initialized")) 66 log.debug(_("XML stream is initialized"))
67 self.keep_alife = task.LoopingCall(self.xmlstream.send, " ") # Needed to avoid disconnection (specially with openfire) 67 self.keep_alife = task.LoopingCall(self.xmlstream.send, " ") # Needed to avoid disconnection (specially with openfire)
68 self.keep_alife.start(180) 68 self.keep_alife.start(C.XMPP_KEEP_ALIFE)
69 69
70 self.disco = SatDiscoProtocol(self) 70 self.disco = SatDiscoProtocol(self)
71 self.disco.setHandlerParent(self) 71 self.disco.setHandlerParent(self)
72 self.discoHandler = disco.DiscoHandler() 72 self.discoHandler = disco.DiscoHandler()
73 self.discoHandler.setHandlerParent(self) 73 self.discoHandler.setHandlerParent(self)