remove unnecessary branch
This commit is contained in:
parent
84debaabca
commit
797b3fe6a9
|
@ -145,10 +145,7 @@ class ConnectionJingle(object):
|
|||
gajim.get_jid_without_resource(jid))
|
||||
if contact is None:
|
||||
return
|
||||
if contact.supports(xmpp.NS_JINGLE_XTLS):
|
||||
use_security = True
|
||||
else:
|
||||
use_security = False
|
||||
use_security = contact.supports(xmpp.NS_JINGLE_XTLS)
|
||||
if jingle:
|
||||
file_props['sid'] = jingle.sid
|
||||
jingle.add_content('file',
|
||||
|
|
|
@ -92,11 +92,7 @@ class JingleFileTransfer(JingleContent):
|
|||
|
||||
file_props['session-type'] = 'jingle'
|
||||
|
||||
security = content.getTag('security')
|
||||
if not security:
|
||||
self.use_security = False
|
||||
else:
|
||||
self.use_security = True
|
||||
self.use_security = bool(content.getTag('security'))
|
||||
|
||||
file_tag = content.getTag('description').getTag('offer').getTag('file')
|
||||
for attribute in file_tag.getAttrs():
|
||||
|
@ -132,8 +128,6 @@ class JingleFileTransfer(JingleContent):
|
|||
|
||||
self.session.connection.dispatch('FILE_REQUEST', (jid, file_props))
|
||||
|
||||
|
||||
|
||||
def __on_session_accept(self, stanza, content, error, action):
|
||||
log.info("__on_session_accept")
|
||||
|
||||
|
|
Loading…
Reference in New Issue