[evolution-data-server] I#68 - WebDAV registry backend Refresh can remove existing sources ]I[
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] I#68 - WebDAV registry backend Refresh can remove existing sources ]I[
- Date: Wed, 7 Aug 2019 15:52:45 +0000 (UTC)
commit f459a2bf2fd537b72a178c8003b06fd801ec3d0d
Author: Milan Crha <mcrha redhat com>
Date: Wed Aug 7 17:50:21 2019 +0200
I#68 - WebDAV registry backend Refresh can remove existing sources ]I[
Be less strict. When a request to the server fails, with whatever error,
then do not remove previously found sources.
Related to https://gitlab.gnome.org/GNOME/evolution-data-server/issues/68
src/libebackend/e-webdav-collection-backend.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/libebackend/e-webdav-collection-backend.c b/src/libebackend/e-webdav-collection-backend.c
index d89fc737e..e8833a9b1 100644
--- a/src/libebackend/e-webdav-collection-backend.c
+++ b/src/libebackend/e-webdav-collection-backend.c
@@ -562,8 +562,7 @@ e_webdav_collection_backend_discover_sync (EWebDAVCollectionBackend *webdav_back
e_webdav_discover_free_discovered_sources (discovered_sources);
discovered_sources = NULL;
any_success = TRUE;
- } else if (local_error && local_error->domain == SOUP_HTTP_ERROR && (
- SOUP_STATUS_IS_TRANSPORT_ERROR (local_error->code) || SOUP_STATUS_IS_SERVER_ERROR
(local_error->code))) {
+ } else if (local_error) {
RemoveSourceTypesData rstd;
rstd.server = server;
@@ -586,8 +585,7 @@ e_webdav_collection_backend_discover_sync (EWebDAVCollectionBackend *webdav_back
e_webdav_discover_free_discovered_sources (discovered_sources);
discovered_sources = NULL;
any_success = TRUE;
- } else if (any_success && local_error && local_error->domain == SOUP_HTTP_ERROR && (
- SOUP_STATUS_IS_TRANSPORT_ERROR (local_error->code) || SOUP_STATUS_IS_SERVER_ERROR
(local_error->code))) {
+ } else if (any_success && local_error) {
RemoveSourceTypesData rstd;
rstd.server = server;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]