imapx_call_idle: Do not print Cancelled errors on console
authorMilan Crha <mcrha@redhat.com>
Thu, 6 Feb 2014 12:00:47 +0000 (13:00 +0100)
committerMilan Crha <mcrha@redhat.com>
Thu, 6 Feb 2014 12:00:47 +0000 (13:00 +0100)
camel/providers/imapx/camel-imapx-server.c

index c0028b0..ff04c7b 100644 (file)
@@ -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);
        }