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.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp
index ad7909c7a..1ae4d2323 100644
--- a/src/net/ea/network.cpp
+++ b/src/net/ea/network.cpp
@@ -140,11 +140,8 @@ void Network::disconnect()
BLOCK_START("Network::disconnect")
mState = IDLE;
- if ((mWorkerThread != nullptr) && (SDL_GetThreadID(mWorkerThread) != 0u))
- {
- SDL_WaitThread(mWorkerThread, nullptr);
- mWorkerThread = nullptr;
- }
+ SDL::WaitThread(mWorkerThread);
+ mWorkerThread = nullptr;
if (mSocket != nullptr)
{