This commit is contained in:
holger krekel
2020-05-20 14:26:18 +02:00
parent 3703a1c36c
commit b91d7f314b
4 changed files with 66 additions and 10 deletions

View File

@@ -51,6 +51,14 @@ class IOThreads:
except StopIteration:
break
self.account.ac_log_line("calling hook name={} kwargs={}".format(ev.name, ev.kwargs))
ev.call_hook()
try:
ev.call_hook()
except Exception:
# don't bother logging this error
# because dc_close() was concurrently called
# and core API starts failing after that.
if not self._thread_quitflag:
raise