summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
Diffstat (limited to 'node')
-rw-r--r--node/Condition.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/node/Condition.hpp b/node/Condition.hpp
index 3895f4df..74af06a2 100644
--- a/node/Condition.hpp
+++ b/node/Condition.hpp
@@ -63,7 +63,9 @@ public:
inline void wait(unsigned long ms) const
throw()
{
- WaitForSingleObject(_sem,(DWORD)ms);
+ if (ms)
+ WaitForSingleObject(_sem,(DWORD)ms);
+ else WaitForSingleObject(_sem,INFINITE);
}
inline void signal() const