From 54dbd78f90543c22ad2c37c7117a50575b62301d Mon Sep 17 00:00:00 2001 From: sapier Date: Mon, 16 Dec 2013 23:31:56 +0100 Subject: [PATCH] Fix broken httpfetch due to SimpleThread removal --- src/httpfetch.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/httpfetch.cpp b/src/httpfetch.cpp index 6c073c8e..b48d0076 100644 --- a/src/httpfetch.cpp +++ b/src/httpfetch.cpp @@ -539,6 +539,7 @@ protected: void * Thread() { + ThreadStarted(); log_register_thread("CurlFetchThread"); DSTACK(__FUNCTION_NAME); @@ -651,6 +652,8 @@ void httpfetch_cleanup() void httpfetch_async(const HTTPFetchRequest &fetchrequest) { g_httpfetch_thread->requestFetch(fetchrequest); + if (!g_httpfetch_thread->IsRunning()) + g_httpfetch_thread->Start(); } static void httpfetch_request_clear(unsigned long caller) -- 2.30.2