mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-23 08:08:47 -05:00
Fix broken httpfetch due to SimpleThread removal
This commit is contained in:
parent
c9ac9992c7
commit
54dbd78f90
@ -539,6 +539,7 @@ protected:
|
|||||||
|
|
||||||
void * Thread()
|
void * Thread()
|
||||||
{
|
{
|
||||||
|
ThreadStarted();
|
||||||
log_register_thread("CurlFetchThread");
|
log_register_thread("CurlFetchThread");
|
||||||
DSTACK(__FUNCTION_NAME);
|
DSTACK(__FUNCTION_NAME);
|
||||||
|
|
||||||
@ -651,6 +652,8 @@ void httpfetch_cleanup()
|
|||||||
void httpfetch_async(const HTTPFetchRequest &fetchrequest)
|
void httpfetch_async(const HTTPFetchRequest &fetchrequest)
|
||||||
{
|
{
|
||||||
g_httpfetch_thread->requestFetch(fetchrequest);
|
g_httpfetch_thread->requestFetch(fetchrequest);
|
||||||
|
if (!g_httpfetch_thread->IsRunning())
|
||||||
|
g_httpfetch_thread->Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void httpfetch_request_clear(unsigned long caller)
|
static void httpfetch_request_clear(unsigned long caller)
|
||||||
|
Loading…
Reference in New Issue
Block a user