From 69f095687d58ee46be74ff8d2e81c1c3594e54ff Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Thu, 21 May 2020 15:50:56 +0200 Subject: [PATCH] check correct running flag in scheduler stop --- python/src/deltachat/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: