From 13517fb726bd60dceae4fc414d93e5dc9d9daef8 Mon Sep 17 00:00:00 2001 From: sapier Date: Sun, 15 Jun 2014 21:30:44 +0200 Subject: Add separate download timeout to allow download of bigger files or on low bandwidth lines --- src/guiEngine.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/guiEngine.cpp') diff --git a/src/guiEngine.cpp b/src/guiEngine.cpp index 34bdaffad..530733216 100644 --- a/src/guiEngine.cpp +++ b/src/guiEngine.cpp @@ -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) { -- cgit v1.2.3