From e9e1e25d77bb68ce7700a8c819cc3462492a6053 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Wed, 29 Jul 2015 13:32:00 +0200 Subject: [PATCH] qcurl_multi_cleanup check --- code/client/cl_curl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/client/cl_curl.c b/code/client/cl_curl.c index 53dd296d..410f8840 100644 --- a/code/client/cl_curl.c +++ b/code/client/cl_curl.c @@ -177,9 +177,9 @@ void CL_cURL_Shutdown( void ) void CL_cURL_Cleanup(void) { if(clc.downloadCURLM) { - if(clc.downloadCURL) { - CURLMcode result; + CURLMcode result; + if(clc.downloadCURL) { result = qcurl_multi_remove_handle(clc.downloadCURLM, clc.downloadCURL); if(result != CURLM_OK) { @@ -187,7 +187,10 @@ void CL_cURL_Cleanup(void) } qcurl_easy_cleanup(clc.downloadCURL); } - qcurl_multi_cleanup(clc.downloadCURLM); + result = qcurl_multi_cleanup(clc.downloadCURLM); + if(result != CURLM_OK) { + Com_DPrintf("CL_cURL_Cleanup: qcurl_multi_cleanup failed: %s\n", qcurl_multi_strerror(result)); + } clc.downloadCURLM = NULL; clc.downloadCURL = NULL; }