From f55d028ae53e5d182cfba523e9525df469af861d Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Mon, 20 Jan 2025 16:39:23 -0500 Subject: [PATCH] cloud sync: workaround bug of requests being duplicated (#17448) --- network/cloud_sync/webdav.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/network/cloud_sync/webdav.c b/network/cloud_sync/webdav.c index 433f54d1084..e4c7f68b60c 100644 --- a/network/cloud_sync/webdav.c +++ b/network/cloud_sync/webdav.c @@ -614,6 +614,7 @@ static bool webdav_read(const char *path, const char *file, cloud_sync_complete_ char url[PATH_MAX_LENGTH]; char url_encoded[PATH_MAX_LENGTH]; char *auth_header; + void *t; fill_pathname_join_special(url, webdav_st->url, path, sizeof(url)); net_http_urlencode_full(url_encoded, url, sizeof(url_encoded)); @@ -625,9 +626,9 @@ static bool webdav_read(const char *path, const char *file, cloud_sync_complete_ RARCH_DBG("[webdav] GET %s\n", url_encoded); auth_header = webdav_get_auth_header("GET", url_encoded); - task_push_http_transfer_with_headers(url_encoded, true, NULL, auth_header, webdav_read_cb, webdav_cb_st); + t = task_push_http_transfer_with_headers(url_encoded, true, NULL, auth_header, webdav_read_cb, webdav_cb_st); free(auth_header); - return true; + return (t != NULL); } static void webdav_mkdir_cb(retro_task_t *task, void *task_data, void *user_data, const char *err)