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

@@ -104,7 +104,7 @@ fn main() {
println!("stopping threads");
*running.write().unwrap() = false;
deltachat::job::interrupt_inbox_idle(&ctx, true);
deltachat::job::interrupt_inbox_idle(&ctx);
deltachat::job::interrupt_smtp_idle(&ctx);
println!("joining");