added timeout for preview screenshot downloading

This commit is contained in:
louis 2015-05-31 07:02:15 +02:00
parent b0208d8b9b
commit 12e65e785e
2 changed files with 3 additions and 0 deletions

View File

@ -348,4 +348,6 @@ Version 0.4.8
Version 0.5.0
- fixed display of channel separators
- added some debug output when installing skins
- added timeout for preview screenshot downloading

View File

@ -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;
}
}