From f03cdbbebf2f5ad5b403e19794c8b28512b3e486 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 25 Aug 2010 13:01:35 +0200 Subject: [PATCH] send a session-terminate at the end of a jingle filetransfer --- src/gui_interface.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui_interface.py b/src/gui_interface.py index 60110b79a..da19d1938 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -1407,11 +1407,18 @@ class Interface: if 'stalled' in file_props and file_props['stalled'] or \ 'paused' in file_props and file_props['paused']: return + if file_props['type'] == 'r': # we receive a file jid = unicode(file_props['sender']) else: # we send a file jid = unicode(file_props['receiver']) + # End jingle session + if file_props['session-type'] == 'jingle' and file_props['type'] == 'r': + session = gajim.connections[account].get_jingle_session(jid, + sid=file_props['session-sid']) + session.end_session() + if helpers.allow_popup_window(account): if file_props['error'] == 0: if gajim.config.get('notify_on_file_complete'):