From 189a2939b00769b0c75eaf73427d04e6c35c6943 Mon Sep 17 00:00:00 2001 From: Learath Date: Thu, 4 Oct 2018 16:09:57 +0200 Subject: [PATCH] Try closing the file earlier. Fix #1250 --- src/engine/shared/http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/shared/http.cpp b/src/engine/shared/http.cpp index 3cc2ed519..e30c5d53b 100644 --- a/src/engine/shared/http.cpp +++ b/src/engine/shared/http.cpp @@ -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(); }