summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--input_gadgets.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/input_gadgets.c b/input_gadgets.c
index f805ee6..25eaaac 100644
--- a/input_gadgets.c
+++ b/input_gadgets.c
@@ -171,7 +171,7 @@ char *gadgets_retrieve_current_temperature(char *output, int max_len)
curl_easy_strerror(res)
);
free(chunk.memory);
- if (res != CURLE_COULDNT_RESOLVE_HOST)
+ if (res != CURLE_COULDNT_RESOLVE_HOST && res != CURLE_COULDNT_CONNECT)
return NULL;
char *ende = output;
if (max_len > 0)
@@ -292,7 +292,7 @@ char *gadgets_retrieve_weather_forecast(char *output, int max_len)
curl_easy_strerror(res)
);
free(chunk.memory);
- if (res != CURLE_COULDNT_RESOLVE_HOST)
+ if (res != CURLE_COULDNT_RESOLVE_HOST && res != CURLE_COULDNT_CONNECT)
return NULL;
char *ende = output;
if (max_len > 0)
@@ -420,7 +420,7 @@ char *gadgets_retrieve_weather_warnings(char *output, int max_len)
curl_easy_strerror(res)
);
free(chunk.memory);
- if (res != CURLE_COULDNT_RESOLVE_HOST)
+ if (res != CURLE_COULDNT_RESOLVE_HOST && res != CURLE_COULDNT_CONNECT)
return NULL;
char *ende = output;
if (max_len > 0)