mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-06 03:50:08 +02:00
in case we're not IMAP-ideling, raise a signal to interrupt MVBOX-thread
This commit is contained in:
parent
84a3b21a95
commit
e6aa2dfa43
1 changed files with 6 additions and 0 deletions
|
@ -1063,6 +1063,12 @@ void dc_interrupt_mvbox_idle(dc_context_t* context)
|
|||
|
||||
dc_log_info(context, 0, "Interrupting MVBOX-IDLE...");
|
||||
dc_imap_interrupt_idle(context->mvbox);
|
||||
|
||||
// in case we're not IMAP-ideling, also raise the signal
|
||||
pthread_mutex_lock(&context->mvboxidle_condmutex);
|
||||
context->mvboxidle_condflag = 1;
|
||||
pthread_cond_signal(&context->mvboxidle_cond);
|
||||
pthread_mutex_unlock(&context->mvboxidle_condmutex);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue