mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 22:42:09 +00:00
qcurl_multi_cleanup check
This commit is contained in:
parent
da79a3ed4e
commit
e9e1e25d77
1 changed files with 6 additions and 3 deletions
|
@ -177,9 +177,9 @@ void CL_cURL_Shutdown( void )
|
||||||
void CL_cURL_Cleanup(void)
|
void CL_cURL_Cleanup(void)
|
||||||
{
|
{
|
||||||
if(clc.downloadCURLM) {
|
if(clc.downloadCURLM) {
|
||||||
if(clc.downloadCURL) {
|
CURLMcode result;
|
||||||
CURLMcode result;
|
|
||||||
|
|
||||||
|
if(clc.downloadCURL) {
|
||||||
result = qcurl_multi_remove_handle(clc.downloadCURLM,
|
result = qcurl_multi_remove_handle(clc.downloadCURLM,
|
||||||
clc.downloadCURL);
|
clc.downloadCURL);
|
||||||
if(result != CURLM_OK) {
|
if(result != CURLM_OK) {
|
||||||
|
@ -187,7 +187,10 @@ void CL_cURL_Cleanup(void)
|
||||||
}
|
}
|
||||||
qcurl_easy_cleanup(clc.downloadCURL);
|
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.downloadCURLM = NULL;
|
||||||
clc.downloadCURL = NULL;
|
clc.downloadCURL = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue