diff --git a/python/src/deltachat/account.py b/python/src/deltachat/account.py index 0f18fcbe3..8b8f01741 100644 --- a/python/src/deltachat/account.py +++ b/python/src/deltachat/account.py @@ -607,7 +607,7 @@ class Account(object): self.log("stop_ongoing") self.stop_ongoing() - if self.is_started(): + if bool(lib.dc_is_running(self._dc_context)): self.log("context_shutdown (stop core scheduler)") lib.dc_context_shutdown(self._dc_context) else: