Commit 542b70aa authored by Philipp Hörist's avatar Philipp Hörist

Accounts: Destroy all GroupchatControl on disable

parent 3431320a
......@@ -1937,7 +1937,10 @@ class Interface:
self.roster.send_status(account, 'online', '')
def disable_account(self, account):
self.roster.close_all(account)
self.roster.close_all(account, force=True)
for jid in self.minimized_controls[account]:
ctrl = self.minimized_controls[account][jid]
ctrl.shutdown()
if account == app.ZEROCONF_ACC_NAME:
app.connections[account].disable_account()
app.connections[account].cleanup()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment