[evolution/webkit] EMailBackend: Ignore cancelled background jobs.



commit b482a3e661dd68c49377466018a4fb64f140815e
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Apr 25 07:14:06 2011 -0400

    EMailBackend: Ignore cancelled background jobs.

 mail/e-mail-backend.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c
index 7665a64..dd8f69a 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;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]