[evolution-data-server] [IMAPx] 'Error performing IDLE: Shutting down' is not an error
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] [IMAPx] 'Error performing IDLE: Shutting down' is not an error
- Date: Tue, 3 Jun 2014 10:02:07 +0000 (UTC)
commit 46129132443c9ab04b40c2d6ce73abb64aa4988b
Author: Milan Crha <mcrha redhat com>
Date: Tue Jun 3 12:00:25 2014 +0200
[IMAPx] 'Error performing IDLE: Shutting down' is not an error
There could be shown the above error on console when closing
an application, but it's not a real error, thus avoid it
being shown.
camel/providers/imapx/camel-imapx-server.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 0399dbd..25b52af 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -3699,7 +3699,8 @@ imapx_call_idle (gpointer data)
/* XXX Need a better way to propagate IDLE errors. */
if (local_error != NULL) {
- if (!g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ if (!g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_CANCELLED) &&
+ is->state != IMAPX_SHUTDOWN)
g_warning ("%s: %s", G_STRFUNC, local_error->message);
g_clear_error (&local_error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]