From 47c2d99f2f3326913429ceb566cb046ea2685054 Mon Sep 17 00:00:00 2001 From: deniska Date: Fri, 2 Aug 2019 00:21:58 +0200 Subject: [PATCH] wrong handle caused infinite loop fix --- source/ClientCurl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/ClientCurl.cpp b/source/ClientCurl.cpp index ce5fc0a..1604c0d 100644 --- a/source/ClientCurl.cpp +++ b/source/ClientCurl.cpp @@ -140,7 +140,10 @@ void ClientCurl::mainClientLoop() { std::unique_lock client_lock(_client_mutex); while (true) { // launch any waiting requests - curl_multi_perform(_curl, &active_requests); + if (curl_multi_perform(_curl, &active_requests)) { + fprintf(stderr, "E: curl_multi_perform\n"); + active_requests = 0; + } // read any messages that are ready size_t msg_count = 0;