remove <ping> child in ping reply. Fixes #7286

This commit is contained in:
Yann Leboulanger 2013-01-10 17:21:05 +01:00
parent 610de0973d
commit 4e4b88cb5b
1 changed files with 3 additions and 0 deletions

View File

@ -1832,6 +1832,9 @@ ConnectionJingle, ConnectionIBBytestream):
if not self.connection or self.connected < 2:
return
iq_obj = obj.stanza.buildReply('result')
q = iq_obj.getTag('ping')
if q:
iq_obj.delChild(q)
self.connection.send(iq_obj)
def _PrivacySetCB(self, con, iq_obj):