[evolution-data-server] imapx_call_idle: Do not print Cancelled errors on console



commit 4fcdff60e038e278bf00acc136ec6610b61b729f
Author: Milan Crha <mcrha redhat com>
Date:   Thu Feb 6 13:00:47 2014 +0100

    imapx_call_idle: Do not print Cancelled errors on console

 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 c0028b0..ff04c7b 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -3760,7 +3760,8 @@ imapx_call_idle (gpointer data)
 
        /* XXX Need a better way to propagate IDLE errors. */
        if (local_error != NULL) {
-               g_warning ("%s: %s", G_STRFUNC, local_error->message);
+               if (!g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+                       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]