new xml log plugin
This commit is contained in:
parent
894e276dec
commit
844b9662fa
1 changed files with 91 additions and 0 deletions
|
|
@ -88,10 +88,13 @@ class SatXMPPClient(client.XMPPClient):
|
|||
info (_("********** [%s] CONNECTED **********") % self.profile)
|
||||
self.streamInitialized()
|
||||
self.host_app.bridge.connected(self.profile) #we send the signal to the clients
|
||||
|
||||
|
||||
def streamInitialized(self):
|
||||
"""Called after _authd"""
|
||||
debug (_("XML stream is initialized"))
|
||||
if not self.host_app.trigger.point("XML Initialized", self.xmlstream, self.profile):
|
||||
return
|
||||
self.keep_alife = task.LoopingCall(self.xmlstream.send, " ") #Needed to avoid disconnection (specially with openfire)
|
||||
self.keep_alife.start(180)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue