correctly cleanup handlers when disabling an account. Fixes #7711
This commit is contained in:
parent
3bd4a26767
commit
12949450e7
|
@ -2553,6 +2553,7 @@ class AccountsWindow:
|
||||||
gajim.interface.roster.close_all(account)
|
gajim.interface.roster.close_all(account)
|
||||||
if account == gajim.ZEROCONF_ACC_NAME:
|
if account == gajim.ZEROCONF_ACC_NAME:
|
||||||
gajim.connections[account].disable_account()
|
gajim.connections[account].disable_account()
|
||||||
|
gajim.connections[account].cleanup()
|
||||||
del gajim.connections[account]
|
del gajim.connections[account]
|
||||||
del gajim.interface.instances[account]
|
del gajim.interface.instances[account]
|
||||||
del gajim.interface.minimized_controls[account]
|
del gajim.interface.minimized_controls[account]
|
||||||
|
|
Loading…
Reference in New Issue