set cURL timeout to 3s

hey..... versions.json is currently 374 bytes, so it's enough for you, right?
This commit is contained in:
Václav Šmejkal 2022-08-25 11:34:54 +02:00
parent 916c670e4b
commit 1d769cec36
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -86,6 +86,7 @@ _Bool checkVersion()
//GET versions.json //GET versions.json
curl_easy_setopt(curl, CURLOPT_URL, VERSIONS_URL); curl_easy_setopt(curl, CURLOPT_URL, VERSIONS_URL);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, fileBuffer); curl_easy_setopt(curl, CURLOPT_WRITEDATA, fileBuffer);
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 3);
//DOWNLOAD versions.json //DOWNLOAD versions.json
curl_easy_perform(curl); curl_easy_perform(curl);