[evolution-data-server] Bug 730788 - [IMAPx] Deadlock during IDLE start
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug 730788 - [IMAPx] Deadlock during IDLE start
- Date: Tue, 27 May 2014 09:11:53 +0000 (UTC)
commit 14f48977ecd03ab4e0f727367cd4882e8a5ca7fa
Author: Milan Crha <mcrha redhat com>
Date: Tue May 27 11:11:22 2014 +0200
Bug 730788 - [IMAPx] Deadlock during IDLE start
camel/providers/imapx/camel-imapx-server.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 23a4299..e098827 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -3555,16 +3555,20 @@ imapx_job_idle_start (CamelIMAPXJob *job,
cp = g_queue_peek_head (&ic->parts);
cp->type |= CAMEL_IMAPX_COMMAND_CONTINUATION;
- QUEUE_LOCK (is);
g_mutex_lock (&is->priv->idle_lock);
/* Don't issue it if the idle was cancelled already */
if (is->priv->idle_state == IMAPX_IDLE_PENDING) {
is->priv->idle_state = IMAPX_IDLE_ISSUED;
+ g_mutex_unlock (&is->priv->idle_lock);
+
+ QUEUE_LOCK (is);
imapx_command_start (is, ic);
} else {
+ g_mutex_unlock (&is->priv->idle_lock);
+
+ QUEUE_LOCK (is);
imapx_unregister_job (is, job);
}
- g_mutex_unlock (&is->priv->idle_lock);
QUEUE_UNLOCK (is);
camel_imapx_command_unref (ic);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]