[evolution-data-server] Bug #664639 - [IMAPX] Doesn't quit gracefully on account disable
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #664639 - [IMAPX] Doesn't quit gracefully on account disable
- Date: Fri, 27 Apr 2012 09:24:43 +0000 (UTC)
commit 0660a4853d44eabc41e7b5f1756fd1d130209ef4
Author: Milan Crha <mcrha redhat com>
Date: Fri Apr 27 11:23:47 2012 +0200
Bug #664639 - [IMAPX] Doesn't quit gracefully on account disable
camel/providers/imapx/camel-imapx-server.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index fc5de5d..ce6b255 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -5297,8 +5297,7 @@ imapx_parser_thread (gpointer d)
if (is->parser_quit)
g_cancellable_cancel (cancellable);
-
- if (g_cancellable_is_cancelled (cancellable)) {
+ else if (g_cancellable_is_cancelled (cancellable)) {
gint is_empty;
QUEUE_LOCK (is);
@@ -5336,8 +5335,8 @@ imapx_parser_thread (gpointer d)
QUEUE_UNLOCK (is);
is->parser_quit = FALSE;
-
- g_signal_emit (is, signals[SHUTDOWN], 0);
+ if (is->state != IMAPX_SHUTDOWN)
+ g_signal_emit (is, signals[SHUTDOWN], 0);
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]