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:
parent
682b5e99e9
commit
dd1b98316d
2 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue