diff options
author | louis <louis.braun@gmx.de> | 2015-05-31 07:02:15 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2015-05-31 07:02:15 +0200 |
commit | 12e65e785ebcb9d7dcb446c68b1ad4b64b20ce17 (patch) | |
tree | 9681de44eb7e115505b30ae1de3cbec96d25038f /libcore | |
parent | b0208d8b9bc8d67825ad6fdcbeac5d57f1c2f0de (diff) | |
download | vdr-plugin-skindesigner-12e65e785ebcb9d7dcb446c68b1ad4b64b20ce17.tar.gz vdr-plugin-skindesigner-12e65e785ebcb9d7dcb446c68b1ad4b64b20ce17.tar.bz2 |
added timeout for preview screenshot downloading
Diffstat (limited to 'libcore')
-rw-r--r-- | libcore/curlfuncs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcore/curlfuncs.c b/libcore/curlfuncs.c index ed1ea01..c6dfee5 100644 --- a/libcore/curlfuncs.c +++ b/libcore/curlfuncs.c @@ -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; } } |