[evolution-data-server/gnome-3-28] Bug 794434 - [EWebDAVDiscover] The .well-known addresses not tried after first failure



commit 501f51b1c6c5ae8d916bf86110d13b6bbf7f974c
Author: Milan Crha <mcrha redhat com>
Date:   Wed Mar 21 17:25:50 2018 +0100

    Bug 794434 - [EWebDAVDiscover] The .well-known addresses not tried after first failure

 src/libedataserver/e-webdav-discover.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libedataserver/e-webdav-discover.c b/src/libedataserver/e-webdav-discover.c
index eb8addd..5bde7e2 100644
--- a/src/libedataserver/e-webdav-discover.c
+++ b/src/libedataserver/e-webdav-discover.c
@@ -710,7 +710,7 @@ e_webdav_discover_sources_sync (ESource *source,
 
                g_free (uri);
 
-               if (success && !wdd.calendars && (only_supports == E_WEBDAV_DISCOVER_SUPPORTS_NONE ||
+               if (!g_cancellable_is_cancelled (cancellable) && !wdd.calendars && (only_supports == 
E_WEBDAV_DISCOVER_SUPPORTS_NONE ||
                   (only_supports & (E_WEBDAV_DISCOVER_SUPPORTS_EVENTS | E_WEBDAV_DISCOVER_SUPPORTS_MEMOS | 
E_WEBDAV_DISCOVER_SUPPORTS_TASKS)) != 0) &&
                   (!soup_uri_get_path (soup_uri) || !strstr (soup_uri_get_path (soup_uri), 
"/.well-known/"))) {
                        gchar *saved_path;
@@ -733,7 +733,7 @@ e_webdav_discover_sources_sync (ESource *source,
                        g_free (saved_path);
                }
 
-               if (success && !wdd.addressbooks && (only_supports == E_WEBDAV_DISCOVER_SUPPORTS_NONE ||
+               if (!g_cancellable_is_cancelled (cancellable) && !wdd.addressbooks && (only_supports == 
E_WEBDAV_DISCOVER_SUPPORTS_NONE ||
                    (only_supports & (E_WEBDAV_DISCOVER_SUPPORTS_CONTACTS)) != 0) &&
                    (!soup_uri_get_path (soup_uri) || !strstr (soup_uri_get_path (soup_uri), 
"/.well-known/"))) {
                        gchar *saved_path;


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