changeset 7a9de4d181e1 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=7a9de4d181e1
description: fix sending jingle ack

diffstat:

 src/common/jingle_ft.py      |  4 ++++
 src/common/jingle_session.py |  1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

diffs (46 lines):

diff -r 72730fbb5184 -r 7a9de4d181e1 src/common/jingle_ft.py
--- a/src/common/jingle_ft.py   Thu Dec 29 11:39:02 2011 +0100
+++ b/src/common/jingle_ft.py   Thu Dec 29 14:08:35 2011 +0100
@@ -116,6 +116,7 @@
         if self.state == STATE_TRANSPORT_REPLACE:
             # We ack the session accept
             response = stanza.buildReply('result')
+            response.delChild(response.getQuery())
             con.connection.send(response)
             # We send the file
             con.files_props[self.file_props['sid']] = self.file_props
@@ -131,6 +132,7 @@
                 host['sid'] = self.file_props['sid']
 
         response = stanza.buildReply('result')
+        response.delChild(response.getQuery())
         con.connection.send(response)
 
         if not gajim.socks5queue.get_file_props(
@@ -174,6 +176,7 @@
                     self.session.transport_replace()
                 else:
                     response = stanza.buildReply('result')
+                    response.delChild(response.getQuery())
                     self.session.connection.connection.send(response)
                     self.start_transfer()
                     raise xmpp.NodeProcessed
@@ -203,6 +206,7 @@
         self.nominated_cand['peer-cand'] = streamhost_used
         if self.state == STATE_CAND_SENT_PENDING_REPLY:
             response = stanza.buildReply('result')
+            response.delChild(response.getQuery())
             self.session.connection.connection.send(response)
             self.start_transfer()
             raise xmpp.NodeProcessed
diff -r 72730fbb5184 -r 7a9de4d181e1 src/common/jingle_session.py
--- a/src/common/jingle_session.py      Thu Dec 29 11:39:02 2011 +0100
+++ b/src/common/jingle_session.py      Thu Dec 29 14:08:35 2011 +0100
@@ -344,6 +344,7 @@
         Default callback for action stanzas -- simple ack and stop processing
         """
         response = stanza.buildReply('result')
+        response.delChild(response.getQuery())
         self.connection.connection.send(response)
 
     def __on_error(self, stanza, jingle, error, action):
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to