mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 15:42:10 +03:00
add a test echo_and_quit examples
This commit is contained in:
@@ -58,6 +58,7 @@ class Account(object):
|
||||
db_path = db_path.encode("utf8")
|
||||
if not lib.dc_open(self._dc_context, db_path, ffi.NULL):
|
||||
raise ValueError("Could not dc_open: {}".format(db_path))
|
||||
self.db_path = db_path
|
||||
self._configkeys = self.get_config("sys.config_keys").split()
|
||||
atexit.register(self.shutdown)
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ class IOThreads:
|
||||
ev = next(it)
|
||||
except StopIteration:
|
||||
break
|
||||
self.account.log_line("calling hook name={} kwargs={}".format(ev.name, ev.kwargs))
|
||||
ev.call_hook()
|
||||
|
||||
def imap_thread_run(self):
|
||||
|
||||
Reference in New Issue
Block a user