mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 05:56:31 +03:00
speed up test teardown by now waiting for threads to finish ...
and remove a debug statement
This commit is contained in:
@@ -328,10 +328,10 @@ class Account(object):
|
||||
self.configure()
|
||||
self._threads.start()
|
||||
|
||||
def stop_threads(self):
|
||||
def stop_threads(self, wait=True):
|
||||
""" stop IMAP/SMTP threads. """
|
||||
lib.dc_stop_ongoing_process(self._dc_context)
|
||||
self._threads.stop(wait=True)
|
||||
self._threads.stop(wait=wait)
|
||||
|
||||
def _process_event(self, ctx, evt_name, data1, data2):
|
||||
assert ctx == self._dc_context
|
||||
|
||||
Reference in New Issue
Block a user