mirror of
https://github.com/WCBROW01/zblock.git
synced 2025-12-12 04:28:07 -05:00
[main.c] Add log command to curl multi error
This commit is contained in:
1
main.c
1
main.c
@ -109,6 +109,7 @@ static void timer_retrieve_feeds(struct discord *client, struct discord_timer *t
|
|||||||
curl_easy_setopt(feed_handle, CURLOPT_PRIVATE, &feed_list[i]);
|
curl_easy_setopt(feed_handle, CURLOPT_PRIVATE, &feed_list[i]);
|
||||||
CURLMcode mc = curl_multi_add_handle(multi, feed_handle);
|
CURLMcode mc = curl_multi_add_handle(multi, feed_handle);
|
||||||
if (mc) {
|
if (mc) {
|
||||||
|
log_error("Unable to retrieve feed list: %s", curl_multi_strerror(mc));
|
||||||
curl_easy_cleanup(feed_handle);
|
curl_easy_cleanup(feed_handle);
|
||||||
fclose(feed_list[i].fp);
|
fclose(feed_list[i].fp);
|
||||||
free(feed_list[i].buf);
|
free(feed_list[i].buf);
|
||||||
|
|||||||
Reference in New Issue
Block a user