From: sapier Date: Mon, 16 Dec 2013 22:31:56 +0000 (+0100) Subject: Fix broken httpfetch due to SimpleThread removal X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=54dbd78f90543c22ad2c37c7117a50575b62301d;p=zefram%2Fminetest%2Fminetest_engine.git Fix broken httpfetch due to SimpleThread removal --- 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)