From 79f7e4534f04a12bac5200ffdd1df48fc17de9ee Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 25 Apr 2011 07:14:06 -0400 Subject: EMailBackend: Ignore cancelled background jobs. --- mail/e-mail-backend.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mail') 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; -- cgit v1.2.3