aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-backend.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-04-25 19:14:06 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:56 +0800
commit3a69a315de9e09bdf8f429a525770723f8bbc871 (patch)
treee03249f7e3aaaea789c240f6f80a127041abe298 /mail/e-mail-backend.c
parentd1996edbe78494b1f4964bb83cb38b5ea1826d93 (diff)
downloadgsoc2013-evolution-3a69a315de9e09bdf8f429a525770723f8bbc871.tar.gz
gsoc2013-evolution-3a69a315de9e09bdf8f429a525770723f8bbc871.tar.zst
gsoc2013-evolution-3a69a315de9e09bdf8f429a525770723f8bbc871.zip
EMailBackend: Ignore cancelled background jobs.
Diffstat (limited to 'mail/e-mail-backend.c')
-rw-r--r--mail/e-mail-backend.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c
index 7665a64f8b..dd8f69ac53 100644
--- a/mail/e-mail-backend.c
+++ b/mail/e-mail-backend.c
@@ -434,7 +434,10 @@ mail_backend_job_finished_cb (CamelSession *session,
activity = g_hash_table_lookup (priv->jobs, cancellable);
description = e_activity_get_text (activity);
- if (error != NULL) {
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
+ /* ignore cancellations */
+
+ } else if (error != NULL) {
EShell *shell;
GList *list, *iter;