fix sending jingle ack
This commit is contained in:
parent
49bc202421
commit
41b7bd7b41
|
@ -116,6 +116,7 @@ class JingleFileTransfer(JingleContent):
|
||||||
if self.state == STATE_TRANSPORT_REPLACE:
|
if self.state == STATE_TRANSPORT_REPLACE:
|
||||||
# We ack the session accept
|
# We ack the session accept
|
||||||
response = stanza.buildReply('result')
|
response = stanza.buildReply('result')
|
||||||
|
response.delChild(response.getQuery())
|
||||||
con.connection.send(response)
|
con.connection.send(response)
|
||||||
# We send the file
|
# We send the file
|
||||||
con.files_props[self.file_props['sid']] = self.file_props
|
con.files_props[self.file_props['sid']] = self.file_props
|
||||||
|
@ -131,6 +132,7 @@ class JingleFileTransfer(JingleContent):
|
||||||
host['sid'] = self.file_props['sid']
|
host['sid'] = self.file_props['sid']
|
||||||
|
|
||||||
response = stanza.buildReply('result')
|
response = stanza.buildReply('result')
|
||||||
|
response.delChild(response.getQuery())
|
||||||
con.connection.send(response)
|
con.connection.send(response)
|
||||||
|
|
||||||
if not gajim.socks5queue.get_file_props(
|
if not gajim.socks5queue.get_file_props(
|
||||||
|
@ -174,6 +176,7 @@ class JingleFileTransfer(JingleContent):
|
||||||
self.session.transport_replace()
|
self.session.transport_replace()
|
||||||
else:
|
else:
|
||||||
response = stanza.buildReply('result')
|
response = stanza.buildReply('result')
|
||||||
|
response.delChild(response.getQuery())
|
||||||
self.session.connection.connection.send(response)
|
self.session.connection.connection.send(response)
|
||||||
self.start_transfer()
|
self.start_transfer()
|
||||||
raise xmpp.NodeProcessed
|
raise xmpp.NodeProcessed
|
||||||
|
@ -203,6 +206,7 @@ class JingleFileTransfer(JingleContent):
|
||||||
self.nominated_cand['peer-cand'] = streamhost_used
|
self.nominated_cand['peer-cand'] = streamhost_used
|
||||||
if self.state == STATE_CAND_SENT_PENDING_REPLY:
|
if self.state == STATE_CAND_SENT_PENDING_REPLY:
|
||||||
response = stanza.buildReply('result')
|
response = stanza.buildReply('result')
|
||||||
|
response.delChild(response.getQuery())
|
||||||
self.session.connection.connection.send(response)
|
self.session.connection.connection.send(response)
|
||||||
self.start_transfer()
|
self.start_transfer()
|
||||||
raise xmpp.NodeProcessed
|
raise xmpp.NodeProcessed
|
||||||
|
|
|
@ -344,6 +344,7 @@ class JingleSession(object):
|
||||||
Default callback for action stanzas -- simple ack and stop processing
|
Default callback for action stanzas -- simple ack and stop processing
|
||||||
"""
|
"""
|
||||||
response = stanza.buildReply('result')
|
response = stanza.buildReply('result')
|
||||||
|
response.delChild(response.getQuery())
|
||||||
self.connection.connection.send(response)
|
self.connection.connection.send(response)
|
||||||
|
|
||||||
def __on_error(self, stanza, jingle, error, action):
|
def __on_error(self, stanza, jingle, error, action):
|
||||||
|
|
Loading…
Reference in New Issue