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

prevent traceback when changing resource of a control when there is no event...

prevent traceback when changing resource of a control when there is no event for the account at all. Fixes #5375
parent 5962494a
No related branches found
No related tags found
No related merge requests found
......@@ -163,6 +163,8 @@ class Events:
del self._events[account][jid]
def change_jid(self, account, old_jid, new_jid):
if account not in self._events:
return
if old_jid not in self._events[account]:
return
if new_jid in self._events[account]:
......
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