From: sapier Date: Mon, 16 Dec 2013 22:31:56 +0000 (+0100) Subject: Fix broken httpfetch due to SimpleThread removal X-Git-Tag: 0.4.9~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=54dbd78f90543c22ad2c37c7117a50575b62301d;p=oweals%2Fminetest.git Fix broken httpfetch due to SimpleThread removal --- diff --git a/src/httpfetch.cpp b/src/httpfetch.cpp index 6c073c8e6..b48d00764 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)