diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-10 20:47:26 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-10 20:47:26 +0200 |
commit | 8cc50638669ba0352895ddc6aca56a83332de490 (patch) | |
tree | ead5381e76e4f01869817938db7f375f5ac6b653 /libpiano | |
parent | 4170ad55dc80e0507ca4113b9adeb025a66ede05 (diff) | |
download | pianobar-windows-8cc50638669ba0352895ddc6aca56a83332de490.tar.gz pianobar-windows-8cc50638669ba0352895ddc6aca56a83332de490.tar.bz2 pianobar-windows-8cc50638669ba0352895ddc6aca56a83332de490.zip |
Don't let curl wait forever
Diffstat (limited to 'libpiano')
-rw-r--r-- | libpiano/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpiano/main.c b/libpiano/main.c index d21c91b..746e8d9 100644 --- a/libpiano/main.c +++ b/libpiano/main.c @@ -49,6 +49,7 @@ void PianoInit (PianoHandle_t *ph) { /* set tor as control connection proxy */ curl_easy_setopt (ph->curlHandle, CURLOPT_PROXY, "localhost:9050"); curl_easy_setopt (ph->curlHandle, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4A); + curl_easy_setopt (ph->curlHandle, CURLOPT_CONNECTTIMEOUT, 60); } /* free complete station list |