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

This commit is contained in:
Yann Leboulanger 2011-08-24 23:53:36 +02:00
parent e49a48d7da
commit 4c112419c0
1 changed files with 5 additions and 1 deletions

View File

@ -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