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
committerMatthew Barnes <mbarnes@redhat.com>2011-04-25 19:17:23 +0800
commit79f7e4534f04a12bac5200ffdd1df48fc17de9ee (patch)
treec23876e75268c57671a53d2d72301bac5a35d751 /mail/e-mail-backend.c
parentc367bb11764a4635dfd3623060bdb809451b199e (diff)
downloadgsoc2013-evolution-79f7e4534f04a12bac5200ffdd1df48fc17de9ee.tar
gsoc2013-evolution-79f7e4534f04a12bac5200ffdd1df48fc17de9ee.tar.gz
gsoc2013-evolution-79f7e4534f04a12bac5200ffdd1df48fc17de9ee.tar.bz2
gsoc2013-evolution-79f7e4534f04a12bac5200ffdd1df48fc17de9ee.tar.lz
gsoc2013-evolution-79f7e4534f04a12bac5200ffdd1df48fc17de9ee.tar.xz
gsoc2013-evolution-79f7e4534f04a12bac5200ffdd1df48fc17de9ee.tar.zst
gsoc2013-evolution-79f7e4534f04a12bac5200ffdd1df48fc17de9ee.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;