From 85faec91ab3a36c86adec7f6003fc308de268e50 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Mon, 27 Jul 2015 20:38:20 +0200 Subject: [PATCH] qcurl_multi_remove_handle check --- code/client/cl_curl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/client/cl_curl.c b/code/client/cl_curl.c index 901ef999..8f8f29bd 100644 --- a/code/client/cl_curl.c +++ b/code/client/cl_curl.c @@ -178,8 +178,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);