Skip to content
Snippets Groups Projects
Commit 6006fb82 authored by jimpp's avatar jimpp
Browse files

Do not TB when calling really_remove_contact on a deleted account due to the...

Do not TB when calling really_remove_contact on a deleted account due to the timeout call (simpler than
deleting timeout(s) itself). Fixes #2146.
parent 8660b503
No related branches found
No related tags found
No related merge requests found
......@@ -332,6 +332,9 @@ class RosterWindow:
gajim.interface.roster.add_contact_to_roster(transport, account)
def really_remove_contact(self, contact, account):
if not gajim.interface.instances.has_key(account):
# Account has been deleted during the timeout that called us
return
if contact.jid in gajim.newly_added[account]:
return
if contact.jid.find('@') < 1 and gajim.connections[account].connected > 1:
......
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