Skip to content
Snippets Groups Projects
Commit 4c112419 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

start transfer when we get a candidate-error, but we found a remote usable streamhost

parent e49a48d7
No related branches found
No related tags found
No related merge requests found
......@@ -167,12 +167,16 @@ class JingleFileTransfer(JingleContent):
if content.getTag('transport').getTag('candidate-error'):
self.nominated_cand['peer-cand'] = False
if self.state == STATE_CAND_SENT_PENDING_REPLY:
#self.state = STATE_CAND_SENT_AND_RECEIVED
if not self.nominated_cand['our-cand'] and \
not self.nominated_cand['peer-cand']:
if not self.weinitiate:
return
self.session.transport_replace()
else:
response = stanza.buildReply('result')
self.session.connection.connection.send(response)
self.start_transfer()
raise xmpp.NodeProcessed
else:
self.state = STATE_CAND_RECEIVED_PENDING_REPLY
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment