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);