summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/Event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/OSSupport/Event.cpp')
-rw-r--r--source/OSSupport/Event.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/OSSupport/Event.cpp b/source/OSSupport/Event.cpp
index 9348384b0..32f780946 100644
--- a/source/OSSupport/Event.cpp
+++ b/source/OSSupport/Event.cpp
@@ -141,7 +141,7 @@ cEvent::eWaitResult cEvent::Wait(int a_TimeoutMilliSec)
}
#else
timespec timeout;
- timeout.tv_sec = a_TimeoutMilliSec / 1000;
+ timeout.tv_sec = time(NULL) + a_TimeoutMilliSec / 1000;
timeout.tv_nsec = (a_TimeoutMilliSec % 1000) * 1000000;
int res = sem_timedwait(m_Event, &timeout);
if (res == 0)