summaryrefslogtreecommitdiff
path: root/src/net/download.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/download.cpp')
-rw-r--r--src/net/download.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp
index a8f0e1c0c..f469a3258 100644
--- a/src/net/download.cpp
+++ b/src/net/download.cpp
@@ -169,7 +169,11 @@ bool Download::start()
{
logger->log("Starting download: %s", mUrl.c_str());
+#ifdef USE_SDL2
+ mThread = SDL_CreateThread(downloadThread, "download", this);
+#else
mThread = SDL_CreateThread(downloadThread, this);
+#endif
if (!mThread)
{