diff options
author | Pan7 <panter@gmx.net> | 2015-07-29 13:32:00 +0200 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2016-04-07 11:04:21 +0100 |
commit | 3175cb56dfe31d511ba98195c7f778af69d6a7ad (patch) | |
tree | 734caeb93663102267f1c9f620f4d1b309c1c39c /src/client/cl_curl.c | |
parent | 208af524e60c88bae53eedfa7012f962cacd1e15 (diff) |
qcurl_multi_cleanup check
Diffstat (limited to 'src/client/cl_curl.c')
-rw-r--r-- | src/client/cl_curl.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/client/cl_curl.c b/src/client/cl_curl.c index 3ec1e354..c3530d72 100644 --- a/src/client/cl_curl.c +++ b/src/client/cl_curl.c @@ -178,9 +178,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) { @@ -188,7 +188,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; } |