Merge pull request #140 from Pan7/qcurl_remove

qcurl_multi_remove_handle check
This commit is contained in:
Tim Angus 2015-07-28 10:37:07 +01:00
commit da79a3ed4e

View file

@ -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", qcurl_multi_strerror(result));
}
qcurl_easy_cleanup(clc.downloadCURL);
}
qcurl_multi_cleanup(clc.downloadCURLM);