From 4c112419c0ca4a85de5e023a7441527d587b41aa Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 24 Aug 2011 23:53:36 +0200 Subject: [PATCH] start transfer when we get a candidate-error, but we found a remote usable streamhost --- src/common/jingle_ft.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/jingle_ft.py b/src/common/jingle_ft.py index 8a7a63518..6b9d5bcda 100644 --- a/src/common/jingle_ft.py +++ b/src/common/jingle_ft.py @@ -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