prevent traceback when changing resource of a control when there is no event for the account at all. Fixes #5375
This commit is contained in:
parent
5962494a9e
commit
bf9c6fb6a1
|
@ -163,6 +163,8 @@ class Events:
|
||||||
del self._events[account][jid]
|
del self._events[account][jid]
|
||||||
|
|
||||||
def change_jid(self, account, old_jid, new_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]:
|
if old_jid not in self._events[account]:
|
||||||
return
|
return
|
||||||
if new_jid in self._events[account]:
|
if new_jid in self._events[account]:
|
||||||
|
|
Loading…
Reference in New Issue