mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 07:32:12 +03:00
prevent one strange traceback probably caused by ongoing shutdown
This commit is contained in:
@@ -221,6 +221,8 @@ class EventThread(threading.Thread):
|
||||
self._inner_run()
|
||||
|
||||
def _inner_run(self):
|
||||
if self._marked_for_shutdown or self.account._dc_context is None:
|
||||
return
|
||||
event_emitter = ffi.gc(
|
||||
lib.dc_get_event_emitter(self.account._dc_context),
|
||||
lib.dc_event_emitter_unref,
|
||||
|
||||
Reference in New Issue
Block a user