diff options
author | sapier <Sapier at GMX dot net> | 2013-12-16 23:31:56 +0100 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2013-12-16 23:31:56 +0100 |
commit | 54dbd78f90543c22ad2c37c7117a50575b62301d (patch) | |
tree | 88b19e05d43ea8e35ddeba805b4c4ef977071666 /src | |
parent | c9ac9992c7a8addc4839fdcc379cc2a757c60fc0 (diff) | |
download | minetest-54dbd78f90543c22ad2c37c7117a50575b62301d.tar.gz minetest-54dbd78f90543c22ad2c37c7117a50575b62301d.tar.bz2 minetest-54dbd78f90543c22ad2c37c7117a50575b62301d.zip |
Fix broken httpfetch due to SimpleThread removal
Diffstat (limited to 'src')
-rw-r--r-- | src/httpfetch.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) |