From 4e4b88cb5b99e90ea1018625cc0da881942e39d5 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 10 Jan 2013 17:21:05 +0100 Subject: [PATCH] remove child in ping reply. Fixes #7286 --- src/common/connection_handlers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 7382a5ccb..c3ed974f8 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -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):