correctly cleanup handlers when disabling an account. Fixes #7711

This commit is contained in:
Yann Leboulanger 2015-01-03 14:15:18 +01:00
parent 3bd4a26767
commit 12949450e7
1 changed files with 1 additions and 0 deletions

View File

@ -2553,6 +2553,7 @@ class AccountsWindow:
gajim.interface.roster.close_all(account)
if account == gajim.ZEROCONF_ACC_NAME:
gajim.connections[account].disable_account()
gajim.connections[account].cleanup()
del gajim.connections[account]
del gajim.interface.instances[account]
del gajim.interface.minimized_controls[account]