connection.py: Use XEP-0198 ack request as ping/pong when available. Fixes #7090

This commit is contained in:
Matthew Wild 2012-03-18 15:40:03 +00:00
parent 95c2d73684
commit f8eb9476f3
1 changed files with 2 additions and 1 deletions

View File

@ -1616,7 +1616,8 @@ class Connection(CommonConnection, ConnectionHandlers):
if not gajim.account_is_connected(self.name):
return
self.connection.set_send_timeout(self.keepalives, self.send_keepalive)
self.connection.set_send_timeout2(self.pingalives, self.sendPing)
self.connection.set_send_timeout2(self.pingalives,
self.sm.enabled and self.sm.request_ack or self.sendPing)
self.connection.onreceive(None)
self.privacy_rules_requested = False