[evolution-data-server] Disconnect/reconnect in case of an io error
- From: Chenthill Palanisamy <pchen src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Disconnect/reconnect in case of an io error
- Date: Tue, 29 Dec 2009 17:46:52 +0000 (UTC)
commit 2ce1b14fe77a334878b5e8ed1b781b44489b13e2
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Tue Dec 29 16:24:26 2009 +0530
Disconnect/reconnect in case of an io error
camel/providers/imapx/camel-imapx-server.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 578e618..761fa58 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2578,8 +2578,6 @@ imapx_server_loop(gpointer d)
camel_exception_setv (&ex, CAMEL_EXCEPTION_USER_CANCEL, "Operation Cancelled: %s", g_strerror(errno));
if (camel_exception_is_set (&ex)) {
- printf("######### Got main loop exception: %s\n", ex.desc);
-
if (errno == EINTR) {
cancel_all_jobs (is);
@@ -2587,6 +2585,9 @@ imapx_server_loop(gpointer d)
return NULL;
}
+ if (!g_ascii_strcasecmp (ex.desc, "io error"))
+ imapx_disconnect (is);
+
camel_exception_clear (&ex);
sleep(1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]