remove <ping> child in ping reply. Fixes #7286
This commit is contained in:
parent
610de0973d
commit
4e4b88cb5b
1 changed files with 3 additions and 0 deletions
|
@ -1832,6 +1832,9 @@ ConnectionJingle, ConnectionIBBytestream):
|
||||||
if not self.connection or self.connected < 2:
|
if not self.connection or self.connected < 2:
|
||||||
return
|
return
|
||||||
iq_obj = obj.stanza.buildReply('result')
|
iq_obj = obj.stanza.buildReply('result')
|
||||||
|
q = iq_obj.getTag('ping')
|
||||||
|
if q:
|
||||||
|
iq_obj.delChild(q)
|
||||||
self.connection.send(iq_obj)
|
self.connection.send(iq_obj)
|
||||||
|
|
||||||
def _PrivacySetCB(self, con, iq_obj):
|
def _PrivacySetCB(self, con, iq_obj):
|
||||||
|
|
Loading…
Add table
Reference in a new issue