Commit e841e9ed authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

Jingle: Fix UnboundLocalError for transports variable

transport=None is handled in JingleTransportSocks5()

Fixes #10545
parent 055308ec
Pipeline #7794 passed with stages
in 7 minutes and 4 seconds
......@@ -226,10 +226,13 @@ def start_file_transfer(self, jid, file_props, request=False):
jingle.session_type_ft = True
self._sessions[jingle.sid] = jingle
file_props.sid = jingle.sid
if contact.supports(Namespace.JINGLE_BYTESTREAM):
transport = JingleTransportSocks5()
elif contact.supports(Namespace.JINGLE_IBB):
transport = JingleTransportIBB()
else:
transport = None
senders = 'initiator'
if request:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment