1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Add separate download timeout to allow download of bigger files or on low bandwidth lines

This commit is contained in:
sapier 2014-06-15 21:30:44 +02:00
parent 24face5249
commit 13517fb726
3 changed files with 4 additions and 0 deletions

View file

@ -523,6 +523,7 @@ bool GUIEngine::downloadFile(std::string url,std::string target)
HTTPFetchResult fetchresult;
fetchrequest.url = url;
fetchrequest.caller = HTTPFETCH_SYNC;
fetchrequest.timeout = g_settings->getS32("curl_file_download_timeout");
httpfetch_sync(fetchrequest, fetchresult);
if (fetchresult.succeeded) {