]> git.mxchange.org Git - simgear.git/commitdiff
Fix a warning with GCC
authorJames Turner <zakalawe@mac.com>
Fri, 3 Jun 2016 13:40:55 +0000 (08:40 -0500)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
simgear/io/HTTPClient.cxx

index e881d243a55e572f98b151938297dd4ec0c588b8..2e3192f6ff4fba49a1fe0fa3e71ed893aeb62017 100644 (file)
@@ -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);