Correct JingleContent.send_candidate and JingleTransport.make_transport. Fixes #5525

This commit is contained in:
Thibaut GIRKA 2010-01-04 18:27:18 +01:00
parent dffb2c308b
commit 400390acaa
2 changed files with 4 additions and 2 deletions

View File

@ -118,7 +118,7 @@ class JingleContent(object):
Send a transport candidate for a previously defined transport. Send a transport candidate for a previously defined transport.
""" """
content = self.__content() content = self.__content()
content.addChild(self.transport.make_transport([candidate])) content.addChild(node=self.transport.make_transport([candidate]))
self.session.send_transport_info(content) self.session.send_transport_info(content)
def __fill_jingle_stanza(self, stanza, content, error, action): def __fill_jingle_stanza(self, stanza, content, error, action):

View File

@ -60,6 +60,8 @@ class JingleTransport(object):
""" """
if not candidates: if not candidates:
candidates = self._iter_candidates() candidates = self._iter_candidates()
else:
candidates = (self.make_candidate(candidate) for candidate in candidates)
transport = xmpp.Node('transport', payload=candidates) transport = xmpp.Node('transport', payload=candidates)
return transport return transport