summaryrefslogtreecommitdiff
path: root/src/httpfetch.cpp
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-12-16 23:31:56 +0100
committersapier <Sapier at GMX dot net>2013-12-16 23:31:56 +0100
commit54dbd78f90543c22ad2c37c7117a50575b62301d (patch)
tree88b19e05d43ea8e35ddeba805b4c4ef977071666 /src/httpfetch.cpp
parentc9ac9992c7a8addc4839fdcc379cc2a757c60fc0 (diff)
downloadminetest-54dbd78f90543c22ad2c37c7117a50575b62301d.tar.gz
minetest-54dbd78f90543c22ad2c37c7117a50575b62301d.tar.bz2
minetest-54dbd78f90543c22ad2c37c7117a50575b62301d.zip
Fix broken httpfetch due to SimpleThread removal
Diffstat (limited to 'src/httpfetch.cpp')
-rw-r--r--src/httpfetch.cpp3
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)