From: Mathias Froehlich Date: Thu, 8 Sep 2011 15:41:21 +0000 (+0200) Subject: Fix win32 SGThread::join timeout. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8fba4b0cbe46d4187889c1b415454611c45b493a;p=simgear.git Fix win32 SGThread::join timeout. --- diff --git a/simgear/threads/SGThread.cxx b/simgear/threads/SGThread.cxx index b4afc651..8e5c3a36 100644 --- a/simgear/threads/SGThread.cxx +++ b/simgear/threads/SGThread.cxx @@ -71,7 +71,7 @@ struct SGThread::PrivateData { { if (_handle == INVALID_HANDLE_VALUE) return; - DWORD ret = WaitForSingleObject(_handle, 0); + DWORD ret = WaitForSingleObject(_handle, INFINITE); if (ret != WAIT_OBJECT_0) return; CloseHandle(_handle);