diff options
Diffstat (limited to 'src/gui/whoisonline.cpp')
-rw-r--r-- | src/gui/whoisonline.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp index 741e1e771..7036ac7d0 100644 --- a/src/gui/whoisonline.cpp +++ b/src/gui/whoisonline.cpp @@ -581,7 +581,12 @@ void WhoIsOnline::download() SDL_WaitThread(mThread, nullptr); mDownloadComplete = false; +#ifdef USE_SDL2 + mThread = SDL_CreateThread(WhoIsOnline::downloadThread, + "whoisonline", this); +#else mThread = SDL_CreateThread(WhoIsOnline::downloadThread, this); +#endif if (mThread == nullptr) mDownloadStatus = UPDATE_ERROR; |