Skip to content
Snippets Groups Projects
Commit e8b88db6 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent traceback when closing chat control without jingle enabled. Fixes #5544

parent 95137bae
No related branches found
No related tags found
No related merge requests found
......@@ -1846,8 +1846,11 @@ class ChatControl(ChatControlBase):
banner_name_label.set_tooltip_text(label_tooltip)
def close_jingle_content(self, jingle_type):
sid = getattr(self, jingle_type + '_sid')
if not sid:
return
session = gajim.connections[self.account].get_jingle_session(
self.contact.get_full_jid(), getattr(self, jingle_type + '_sid'))
self.contact.get_full_jid(), sid)
if session:
content = session.get_content(jingle_type)
if content:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment