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:
bors[bot] 2018-10-04 14:27:11 +00:00
commit 7f4c5b2183

View file

@ -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();
}