1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-25 13:55:47 -05:00

fix(github): libcurl stuck at curl_easy_perform

Signed-off-by: kokan <peter.kokai@balabit.com>
This commit is contained in:
kokan 2017-12-17 18:17:07 +01:00 committed by Patrick Ziegler
parent 482876b63a
commit cb4111383f

View file

@ -16,6 +16,7 @@ http_downloader::http_downloader(int connection_timeout) {
curl_easy_setopt(m_curl, CURLOPT_NOSIGNAL, true); curl_easy_setopt(m_curl, CURLOPT_NOSIGNAL, true);
curl_easy_setopt(m_curl, CURLOPT_USERAGENT, "polybar/" GIT_TAG); curl_easy_setopt(m_curl, CURLOPT_USERAGENT, "polybar/" GIT_TAG);
curl_easy_setopt(m_curl, CURLOPT_WRITEFUNCTION, http_downloader::write); curl_easy_setopt(m_curl, CURLOPT_WRITEFUNCTION, http_downloader::write);
curl_easy_setopt(m_curl, CURLOPT_FORBID_REUSE, true);
} }
http_downloader::~http_downloader() { http_downloader::~http_downloader() {