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

prevent traceback when removing an inexistant session. Fixes #1288

parent 87edbb8d
No related branches found
No related tags found
No related merge requests found
......@@ -1304,6 +1304,8 @@ class ConnectionHandlersBase:
def delete_session(self, jid, thread_id):
if not jid in self.sessions:
jid = gajim.get_jid_without_resource(jid)
if not jid in self.sessions:
return
del self.sessions[jid][thread_id]
......
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