[evolution/wip/gsettings] EMailBackend: Ignore cancelled background jobs.



commit 3a69a315de9e09bdf8f429a525770723f8bbc871
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]