fix sending candidates and computing hash in jingle file transfer. Fixes #7669
This commit is contained in:
parent
ee4e161dc8
commit
e9dd691645
|
@ -110,7 +110,7 @@ class JingleFileTransfer(JingleContent):
|
|||
STATE_TRANSPORT_REPLACE : StateTransportReplace(self),
|
||||
STATE_CAND_SENT_AND_RECEIVED : StateCandSentAndRecv(self)
|
||||
}
|
||||
|
||||
|
||||
if jingle_xtls.PYOPENSSL_PRESENT:
|
||||
cert_name = os.path.join(configpaths.gajimpaths['MY_CERT'],
|
||||
jingle_xtls.SELF_SIGNED_CERTIFICATE)
|
||||
|
|
|
@ -69,7 +69,7 @@ class JingleTransport(object):
|
|||
candidates is None)
|
||||
"""
|
||||
if not candidates:
|
||||
candidates = self._iter_candidates()
|
||||
candidates = list(self._iter_candidates())
|
||||
else:
|
||||
candidates = (self.make_candidate(candidate) for candidate in candidates)
|
||||
transport = nbxmpp.Node('transport', payload=candidates)
|
||||
|
|
Loading…
Reference in New Issue