[evolution-data-server] do not start idle while quitting
- From: Chenthill Palanisamy <pchen src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-data-server] do not start idle while quitting
- Date: Mon, 1 Feb 2010 15:28:33 +0000 (UTC)
commit 4547512951292bf1aa1513e43edf2c8593466c24
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Mon Feb 1 21:00:23 2010 +0530
do not start idle while quitting
camel/providers/imapx/camel-imapx-server.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 379bdf7..a56f167 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -71,6 +71,8 @@
/* How many message headers to fetch at a time update summary for new messages*/
#define BATCH_FETCH_COUNT 500
+extern gint camel_application_is_exiting;
+
struct _uidset_state {
struct _CamelIMAPXEngine *ie;
gint entries, uids;
@@ -1768,6 +1770,9 @@ imapx_start_idle (CamelIMAPXServer *is)
{
CamelIMAPXIdle *idle = is->idle;
+ if (camel_application_is_exiting)
+ return;
+
IDLE_LOCK (idle);
if (!idle->idle_thread_id) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]