1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-04 18:29:19 +02:00

in the demo, on exit, wait until the threads are finished; bug fixed

This commit is contained in:
B. Petersen 2018-06-29 00:14:12 +02:00
parent 682b5e99e9
commit dd1b98316d
2 changed files with 8 additions and 1 deletions

View file

@ -186,6 +186,11 @@ static void stop_threads(dc_context_t* mailbox)
imap_foreground = 0;
dc_interrupt_imap_idle(mailbox);
dc_interrupt_smtp_idle(mailbox);
// wait until the threads are finished
while( imap_thread || smtp_thread ) {
usleep(100*1000);
}
}