From 2ac13695423696bc0524927923e0912e05006fbb Mon Sep 17 00:00:00 2001 From: Taylor Richards Date: Sun, 10 Jul 2016 15:57:34 -0400 Subject: [PATCH] detach from inetfile threads rather than waiting on them --- CMakeLists.txt | 2 +- src/inetfile/cftp.cpp | 3 +-- src/inetfile/chttpget.cpp | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a39fea..7ba13d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,7 +83,7 @@ if(DEMO) set(BIN_SUFFIX "${BIN_SUFFIX}demo") endif() -find_package(SDL2 "2.0.1" REQUIRED) +find_package(SDL2 "2.0.2" REQUIRED) find_package(OpenGL REQUIRED) find_package(OpenAL REQUIRED) find_package(LibWebSockets REQUIRED) diff --git a/src/inetfile/cftp.cpp b/src/inetfile/cftp.cpp index 1ceb8dd..fb5c0f7 100644 --- a/src/inetfile/cftp.cpp +++ b/src/inetfile/cftp.cpp @@ -249,8 +249,7 @@ CFtpGet::CFtpGet(char *URL,char *localfile,char *Username,char *Password) } else { - int ret_val; - SDL_WaitThread(thread, &ret_val); + SDL_DetachThread(thread); } m_State = FTP_STATE_CONNECTING; } diff --git a/src/inetfile/chttpget.cpp b/src/inetfile/chttpget.cpp index 3019527..ff71237 100644 --- a/src/inetfile/chttpget.cpp +++ b/src/inetfile/chttpget.cpp @@ -270,8 +270,7 @@ void ChttpGet::GetFile(char *URL,char *localfile) } else { - int ret_val = 0; - SDL_WaitThread(thread, &ret_val); + SDL_DetachThread(thread); } } -- 2.39.2