start xmpp ping after we received the roster. Fixes #4388

This commit is contained in:
Yann Leboulanger 2008-10-07 13:59:42 +00:00
parent 4f6e8b98de
commit 46e958902f
2 changed files with 1 additions and 1 deletions

View File

@ -945,7 +945,6 @@ class Connection(ConnectionHandlers):
self.connection = con
if not self.connection:
return
self.connection.set_send_timeout(self.keepalives, self.sendPing)
self.connection.onreceive(None)
iq = common.xmpp.Iq('get', common.xmpp.NS_PRIVACY, xmlns = '')
id = self.connection.getAnID()

View File

@ -2313,6 +2313,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
self.discoverInfo(jid)
self.dispatch('ROSTER', roster)
self.connection.set_send_timeout(self.keepalives, self.sendPing)
def _send_first_presence(self, signed = ''):
show = self.continue_connect_info[0]