From c04b4248388149ec6195b38c3954592201ea9aaa Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 3 Jun 2016 08:40:55 -0500 Subject: [PATCH] Fix a warning with GCC --- simgear/io/HTTPClient.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simgear/io/HTTPClient.cxx b/simgear/io/HTTPClient.cxx index e881d243..2e3192f6 100644 --- a/simgear/io/HTTPClient.cxx +++ b/simgear/io/HTTPClient.cxx @@ -306,7 +306,9 @@ void Client::cancelRequest(const Request_ptr &r, std::string reason) } CURLMcode err = curl_multi_remove_handle(d->curlMulti, it->second); - assert(err == CURLM_OK); + if (err != CURLM_OK) { + SG_LOG(SG_IO, SG_WARN, "curl_multi_remove_handle failed:" << err); + } // clear the request pointer form the curl-easy object curl_easy_setopt(it->second, CURLOPT_PRIVATE, 0); -- 2.39.5