From 1d769cec36e2936b804c3e36b5df683ee176005d Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Thu, 25 Aug 2022 11:34:54 +0200 Subject: [PATCH] set cURL timeout to 3s hey..... versions.json is currently 374 bytes, so it's enough for you, right? --- src/lib/misc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/misc.c b/src/lib/misc.c index 1f3699c..9058414 100644 --- a/src/lib/misc.c +++ b/src/lib/misc.c @@ -86,6 +86,7 @@ _Bool checkVersion() //GET versions.json curl_easy_setopt(curl, CURLOPT_URL, VERSIONS_URL); curl_easy_setopt(curl, CURLOPT_WRITEDATA, fileBuffer); + curl_easy_setopt(curl, CURLOPT_TIMEOUT, 3); //DOWNLOAD versions.json curl_easy_perform(curl);