summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPan7 <panter@gmx.net>2015-07-29 13:32:00 +0200
committerTim Angus <tim@ngus.net>2016-04-07 11:04:21 +0100
commit3175cb56dfe31d511ba98195c7f778af69d6a7ad (patch)
tree734caeb93663102267f1c9f620f4d1b309c1c39c
parent208af524e60c88bae53eedfa7012f962cacd1e15 (diff)
qcurl_multi_cleanup check
-rw-r--r--src/client/cl_curl.c9
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;
}