projects
/
platform
/
upstream
/
evolution-data-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b626031
)
ECalBackendHttp: Ignore cancellations when retrieving data.
author
Matthew Barnes
<mbarnes@redhat.com>
Mon, 25 Feb 2013 14:34:24 +0000
(09:34 -0500)
committer
Matthew Barnes
<mbarnes@redhat.com>
Mon, 25 Feb 2013 14:36:45 +0000
(09:36 -0500)
Helps avoid emitting uninteresting error messages to clients.
calendar/backends/http/e-cal-backend-http.c
patch
|
blob
|
history
diff --git
a/calendar/backends/http/e-cal-backend-http.c
b/calendar/backends/http/e-cal-backend-http.c
index
0f7a16e
..
f00fbbf
100644
(file)
--- 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);