diff options
author | madmaxoft <github@xoft.cz> | 2013-08-19 17:29:08 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-19 17:29:08 +0200 |
commit | 53455a10fa30170917c46b8e6ee78934180dee79 (patch) | |
tree | be91f15c11e40df80fa79cd6c4a3671780e8d252 /source | |
parent | Debuggers plugin: Added details about pickups to the "/le" command. (diff) | |
download | cuberite-53455a10fa30170917c46b8e6ee78934180dee79.tar cuberite-53455a10fa30170917c46b8e6ee78934180dee79.tar.gz cuberite-53455a10fa30170917c46b8e6ee78934180dee79.tar.bz2 cuberite-53455a10fa30170917c46b8e6ee78934180dee79.tar.lz cuberite-53455a10fa30170917c46b8e6ee78934180dee79.tar.xz cuberite-53455a10fa30170917c46b8e6ee78934180dee79.tar.zst cuberite-53455a10fa30170917c46b8e6ee78934180dee79.zip |
Diffstat (limited to 'source')
-rw-r--r-- | source/OSSupport/Event.cpp | 2 |
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) |