Try closing the file earlier. Fix #1250

This commit is contained in:
Learath 2018-10-04 16:09:57 +02:00
parent 24bd8f2d56
commit 189a2939b0

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