fix last failing test -- make account.shutdown() robust against getting called from event thread

This commit is contained in:
holger krekel
2020-05-22 15:12:55 +02:00
parent 23ceda5ad9
commit 229606fcc5
3 changed files with 14 additions and 2 deletions

View File

@@ -636,6 +636,7 @@ class Account(object):
self._shutdown_event.set()
hook = hookspec.Global._get_plugin_manager().hook
hook.dc_account_after_shutdown(account=self, dc_context=dc_context)
self.log("shutdown finished")
def _destroy_dc_context(dc_context, dc_context_unref=lib.dc_context_unref):