aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-10-18 20:36:50 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-10-18 20:37:56 +0800
commitb0efa5cb274240e3d4c80c2d854dc8cbaa876b6b (patch)
tree07151bf9e5605ee10447d193ecd9ec6c1863395b /libemail-engine
parent7050a12868252cf6254620cd27dcb6832851040d (diff)
downloadgsoc2013-evolution-b0efa5cb274240e3d4c80c2d854dc8cbaa876b6b.tar
gsoc2013-evolution-b0efa5cb274240e3d4c80c2d854dc8cbaa876b6b.tar.gz
gsoc2013-evolution-b0efa5cb274240e3d4c80c2d854dc8cbaa876b6b.tar.bz2
gsoc2013-evolution-b0efa5cb274240e3d4c80c2d854dc8cbaa876b6b.tar.lz
gsoc2013-evolution-b0efa5cb274240e3d4c80c2d854dc8cbaa876b6b.tar.xz
gsoc2013-evolution-b0efa5cb274240e3d4c80c2d854dc8cbaa876b6b.tar.zst
gsoc2013-evolution-b0efa5cb274240e3d4c80c2d854dc8cbaa876b6b.zip
MailFolderCache: Silently ignore cancellation errors.
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);
}