mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
added timeout for preview screenshot downloading
This commit is contained in:
@@ -85,6 +85,7 @@ inline void InitCurlLibraryIfNeeded()
|
||||
curl_easy_setopt(curlfuncs::curl, CURLOPT_WRITEDATA, 0); // Set option to write to string
|
||||
curl_easy_setopt(curlfuncs::curl, CURLOPT_FOLLOWLOCATION, TRUE);
|
||||
curl_easy_setopt(curlfuncs::curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Mayukh's libcurl wrapper http://www.mayukhbose.com/)");
|
||||
curl_easy_setopt(curlfuncs::curl, CURLOPT_TIMEOUT, 5L);
|
||||
curlfuncs::bInitialized = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user