Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
e841e9ed by wurstsalat at 2021-05-14T23:32:41+02:00
Jingle: Fix UnboundLocalError for transports variable

transport=None is handled in JingleTransportSocks5()

Fixes #10545

- - - - -


1 changed file:

- gajim/common/modules/jingle.py


Changes:

=====================================
gajim/common/modules/jingle.py
=====================================
@@ -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:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/e841e9ed95e87aba599f86b773b2227a3bb80677

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/e841e9ed95e87aba599f86b773b2227a3bb80677
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to