make idle wait only as long as the next job wants to run

This commit is contained in:
holger krekel
2019-12-06 01:57:57 +01:00
parent 7c3fc251ff
commit 4a5e99c48e
6 changed files with 39 additions and 14 deletions

View File

@@ -202,7 +202,7 @@ fn stop_threads(context: &Context) {
println!("Stopping threads");
IS_RUNNING.store(false, Ordering::Relaxed);
interrupt_inbox_idle(context, true);
interrupt_inbox_idle(context);
interrupt_mvbox_idle(context);
interrupt_sentbox_idle(context);
interrupt_smtp_idle(context);