summaryrefslogtreecommitdiff
path: root/src/net/ea/network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/network.cpp')
-rw-r--r--src/net/ea/network.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp
index 5214cf7e4..3bcda3db3 100644
--- a/src/net/ea/network.cpp
+++ b/src/net/ea/network.cpp
@@ -114,7 +114,11 @@ bool Network::connect(ServerInfo server)
mToSkip = 0;
mState = CONNECTING;
+#ifdef USE_SDL2
+ mWorkerThread = SDL_CreateThread(networkThread, "network", this);
+#else
mWorkerThread = SDL_CreateThread(networkThread, this);
+#endif
if (!mWorkerThread)
{
setError("Unable to create network worker thread");