summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/cl_curl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/cl_curl.c b/src/client/cl_curl.c
index c3d0c7c8..07633917 100644
--- a/src/client/cl_curl.c
+++ b/src/client/cl_curl.c
@@ -179,8 +179,13 @@ void CL_cURL_Cleanup(void)
{
if(clc.downloadCURLM) {
if(clc.downloadCURL) {
- qcurl_multi_remove_handle(clc.downloadCURLM,
+ CURLMcode result;
+
+ result = qcurl_multi_remove_handle(clc.downloadCURLM,
clc.downloadCURL);
+ if(result != CURLM_OK) {
+ Com_DPrintf("qcurl_multi_remove_handle failed: %s\n", curl_multi_strerror(result));
+ }
qcurl_easy_cleanup(clc.downloadCURL);
}
qcurl_multi_cleanup(clc.downloadCURLM);