From b0efa5cb274240e3d4c80c2d854dc8cbaa876b6b Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 18 Oct 2012 08:36:50 -0400 Subject: MailFolderCache: Silently ignore cancellation errors. --- libemail-engine/mail-folder-cache.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libemail-engine') 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); } -- cgit v1.2.3