From 8fba4b0cbe46d4187889c1b415454611c45b493a Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Thu, 8 Sep 2011 17:41:21 +0200 Subject: [PATCH] Fix win32 SGThread::join timeout. --- simgear/threads/SGThread.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5