connection.py: Use XEP-0198 ack request as ping/pong when available. Fixes #7090
This commit is contained in:
parent
95c2d73684
commit
f8eb9476f3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue