summaryrefslogtreecommitdiff
path: root/src/player.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-23 17:05:45 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-23 17:05:45 +0200
commitf0bab69d9d09fb0a80091d813cc57a85fc3d8c61 (patch)
tree1b3d556dcb8549879a5f56f55a17b7b3016f0f09 /src/player.c
parent332df81085e591c96eb84836514447a0868420f0 (diff)
downloadpianobar-f0bab69d9d09fb0a80091d813cc57a85fc3d8c61.tar.gz
pianobar-f0bab69d9d09fb0a80091d813cc57a85fc3d8c61.tar.bz2
pianobar-f0bab69d9d09fb0a80091d813cc57a85fc3d8c61.zip
Set curl timeout to 60 seconds.
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c
index 8c7ea7b..d0bc4cb 100644
--- a/src/player.c
+++ b/src/player.c
@@ -225,6 +225,7 @@ void *BarPlayerThread (void *data) {
curl_easy_setopt (player->audioFd, CURLOPT_WRITEFUNCTION, BarPlayerCurlCb);
curl_easy_setopt (player->audioFd, CURLOPT_WRITEDATA, player);
curl_easy_setopt (player->audioFd, CURLOPT_USERAGENT, PACKAGE_STRING);
+ curl_easy_setopt (player->audioFd, CURLOPT_CONNECTTIMEOUT, 60);
curl_easy_perform (player->audioFd);
NeAACDecClose(player->aacHandle);