summaryrefslogtreecommitdiff
path: root/input_gadgets.c
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-03-21 11:18:33 +0100
committerErich Eckner <git@eckner.net>2019-03-21 11:18:33 +0100
commit518526e6dbe5654158309291a9f4def92d50376b (patch)
treebb03cf96072c563e024ee4e762e92dadd766fc9f /input_gadgets.c
parentf89d187224290e846062524bab57100e67884c16 (diff)
downloadanzeige-518526e6dbe5654158309291a9f4def92d50376b.tar.xz
input_gadgets.c: CURLE_COULDNT_CONNECT is no reason to exit 1
Diffstat (limited to 'input_gadgets.c')
-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)