mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
check correct running flag in scheduler stop
This commit is contained in:
@@ -607,7 +607,7 @@ class Account(object):
|
|||||||
self.log("stop_ongoing")
|
self.log("stop_ongoing")
|
||||||
self.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)")
|
self.log("context_shutdown (stop core scheduler)")
|
||||||
lib.dc_context_shutdown(self._dc_context)
|
lib.dc_context_shutdown(self._dc_context)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user