diff --git a/src/unix/threadpsx.cpp b/src/unix/threadpsx.cpp index abb4f828d7..3e4c4212ef 100644 --- a/src/unix/threadpsx.cpp +++ b/src/unix/threadpsx.cpp @@ -528,7 +528,7 @@ wxSemaError wxSemaphoreInternal::WaitTimeout(unsigned long milliseconds) return wxSEMA_TIMEOUT; } - if ( m_cond.Wait(remainingTime) != wxCOND_NO_ERROR ) + if ( m_cond.WaitTimeout(remainingTime) != wxCOND_NO_ERROR ) return wxSEMA_MISC_ERROR; }