Skip to content

Commit

Permalink
Merge pull request #140 from Pan7/qcurl_remove
Browse files Browse the repository at this point in the history
qcurl_multi_remove_handle check
  • Loading branch information
timangus committed Jul 28, 2015
2 parents 2a8bf94 + 4db5c3a commit da79a3e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/client/cl_curl.c
Expand Up @@ -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);
Expand Down

0 comments on commit da79a3e

Please sign in to comment.