mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge #1327
1327: Try closing the file earlier. Fix #1250 r=heinrich5991 a=Learath2 Maybe closing the file earlier could work? Co-authored-by: Learath <learath2@gmail.com>
This commit is contained in:
commit
7f4c5b2183
|
@ -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