dont use content-remove for FT use session-terminate

This commit is contained in:
Jefry Lagrange 2011-12-29 17:22:51 -05:00
parent 41b7bd7b41
commit f3b09203d6
1 changed files with 3 additions and 12 deletions

View File

@ -927,19 +927,10 @@ class Interface:
jid = unicode(file_props['receiver']) jid = unicode(file_props['receiver'])
gajim.socks5queue.remove_sender(file_props['sid'], True, True) gajim.socks5queue.remove_sender(file_props['sid'], True, True)
# End jingle session # End jingle session
if file_props.get('session-type') == 'jingle' and file_props['type'] ==\ session = gajim.connections[account].get_jingle_session(jid,
'r':
session = gajim.connections[account].get_jingle_session(jid,
sid=file_props['session-sid']) sid=file_props['session-sid'])
# get content: if session:
content = None session.end_session()
for c in session.contents.values():
if c.file_props['sid'] == file_props['sid']:
content = c
break
if not content:
return
session.remove_content('initiator', c.name)
if helpers.allow_popup_window(account): if helpers.allow_popup_window(account):
if file_props['error'] == 0: if file_props['error'] == 0: