summaryrefslogtreecommitdiff
path: root/camel
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2015-08-05 15:48:38 +0200
committerMilan Crha <mcrha@redhat.com>2015-08-05 15:49:21 +0200
commit859fc2d52fe0f6a7590df4995691dbd4f70682bf (patch)
tree860413c0d03fed3dbf2f72d36dfce8a5c3886c1b /camel
parent5f9e4ec93e708d59a0bfaff9fdd6ba7dab38e764 (diff)
downloadevolution-data-server-859fc2d52fe0f6a7590df4995691dbd4f70682bf.tar.gz
[imapx_server_inactivity_thread] Do not claim 'cancelled' error on console
Diffstat (limited to 'camel')
-rw-r--r--camel/providers/imapx/camel-imapx-server.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index a02dd1859..924a52390 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -651,11 +651,13 @@ imapx_server_inactivity_thread (gpointer user_data)
if (imapx_in_idle (is)) {
/* Stop and restart the IDLE command. */
- if (!camel_imapx_server_schedule_idle_sync (is, NULL, is->priv->cancellable, &local_error)) {
- g_warning ("%s: Faield to restart IDLE: %s", G_STRFUNC, local_error ? local_error->message : "Unknown error");
+ if (!camel_imapx_server_schedule_idle_sync (is, NULL, is->priv->cancellable, &local_error) &&
+ !g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
+ g_warning ("%s: Failed to restart IDLE: %s", G_STRFUNC, local_error ? local_error->message : "Unknown error");
}
} else {
- if (!camel_imapx_server_noop_sync (is, NULL, is->priv->cancellable, &local_error))
+ if (!camel_imapx_server_noop_sync (is, NULL, is->priv->cancellable, &local_error) &&
+ !g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
g_warning ("%s: Failed to issue NOOP: %s", G_STRFUNC, local_error ? local_error->message : "Unknown error");
}