wip-commit which passes all tests with proper finalization

This commit is contained in:
holger krekel
2019-07-16 20:05:41 +02:00
parent 43936e7db7
commit 964fe466cc
2 changed files with 23 additions and 21 deletions

View File

@@ -393,19 +393,15 @@ class IOThreads:
def imap_thread_run(self):
while not self._thread_quitflag:
lib.dc_perform_imap_jobs(self._dc_context)
if self._thread_quitflag:
break
lib.dc_perform_imap_fetch(self._dc_context)
if self._thread_quitflag:
break
lib.dc_perform_imap_idle(self._dc_context)
print("IMAP_THREAD finished")
def smtp_thread_run(self):
while not self._thread_quitflag:
lib.dc_perform_smtp_jobs(self._dc_context)
if self._thread_quitflag:
break
lib.dc_perform_smtp_idle(self._dc_context)
print("SMTP_THREAD finished")
class EventLogger: