mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Try closing the file earlier. Fix #1250
This commit is contained in:
parent
24bd8f2d56
commit
189a2939b0
|
@ -152,6 +152,7 @@ void CRequest::Run()
|
|||
dbg_msg("http", "http %s", m_aUrl);
|
||||
m_State = HTTP_RUNNING;
|
||||
int Ret = curl_easy_perform(pHandle);
|
||||
BeforeCompletion();
|
||||
if(Ret != CURLE_OK)
|
||||
{
|
||||
dbg_msg("http", "task failed. libcurl error: %s", aErr);
|
||||
|
@ -165,7 +166,6 @@ void CRequest::Run()
|
|||
|
||||
curl_easy_cleanup(pHandle);
|
||||
|
||||
BeforeCompletion();
|
||||
OnCompletion();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue