aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine
diff options
context:
space:
mode:
Diffstat (limited to 'libemail-engine')
-rw-r--r--libemail-engine/mail-folder-cache.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libemail-engine/mail-folder-cache.c b/libemail-engine/mail-folder-cache.c
index 92aebbf777..5561bb65f9 100644
--- a/libemail-engine/mail-folder-cache.c
+++ b/libemail-engine/mail-folder-cache.c
@@ -826,7 +826,11 @@ update_folders (CamelStore *store,
fi = camel_store_get_folder_info_finish (store, result, &error);
- if (error != NULL) {
+ /* Silently ignore cancellation errors. */
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
+ g_error_free (error);
+
+ } else if (error != NULL) {
g_warning ("%s", error->message);
g_error_free (error);
}