]> git.mxchange.org Git - simgear.git/commitdiff
Fix win32 SGThread::join timeout.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Thu, 8 Sep 2011 15:41:21 +0000 (17:41 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Thu, 8 Sep 2011 15:41:21 +0000 (17:41 +0200)
simgear/threads/SGThread.cxx

index b4afc65198ed83ffbbfe4a2a65e35ab086cbac15..8e5c3a36ac3e69243e8b5f3283aaddbe6db7f03a 100644 (file)
@@ -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);