[evolution-data-server] ECalBackendHttp: Ignore cancellations when retrieving data.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] ECalBackendHttp: Ignore cancellations when retrieving data.
- Date: Mon, 25 Feb 2013 14:36:22 +0000 (UTC)
commit 42d8cfec593ea589294850883478951031dd9ec4
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Feb 25 09:34:24 2013 -0500
ECalBackendHttp: Ignore cancellations when retrieving data.
Helps avoid emitting uninteresting error messages to clients.
calendar/backends/http/e-cal-backend-http.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/calendar/backends/http/e-cal-backend-http.c b/calendar/backends/http/e-cal-backend-http.c
index 0f7a16e..f00fbbf 100644
--- a/calendar/backends/http/e-cal-backend-http.c
+++ b/calendar/backends/http/e-cal-backend-http.c
@@ -784,7 +784,11 @@ begin_retrieval_cb (GIOSchedulerJob *job,
backend->priv->is_loading = FALSE;
- if (error != NULL) {
+ /* Ignore cancellations. */
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
+ g_error_free (error);
+
+ } else if (error != NULL) {
e_cal_backend_notify_error (
E_CAL_BACKEND (backend),
error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]