summaryrefslogtreecommitdiff
path: root/libcore
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-05-31 07:02:15 +0200
committerlouis <louis.braun@gmx.de>2015-05-31 07:02:15 +0200
commit12e65e785ebcb9d7dcb446c68b1ad4b64b20ce17 (patch)
tree9681de44eb7e115505b30ae1de3cbec96d25038f /libcore
parentb0208d8b9bc8d67825ad6fdcbeac5d57f1c2f0de (diff)
downloadvdr-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.c1
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;
}
}