1
0
Fork 0
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:
B. Petersen 2018-12-20 03:37:21 +01:00
parent 84a3b21a95
commit e6aa2dfa43
No known key found for this signature in database
GPG key ID: 3B88E92DEA8E9AFC

View file

@ -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);
}