mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 00:46:03 +01:00
fix(Event): Poco EventImpl for Win32 breaks INFINITE wait #3737
This commit is contained in:
parent
d6f38dba05
commit
2006327198
@ -46,7 +46,8 @@ void EventImpl::waitImpl()
|
||||
|
||||
bool EventImpl::waitImpl(long milliseconds)
|
||||
{
|
||||
switch (WaitForSingleObject(_event, milliseconds + 1))
|
||||
poco_assert(milliseconds != INFINITE);
|
||||
switch (WaitForSingleObject(_event, milliseconds ? milliseconds : 1))
|
||||
{
|
||||
case WAIT_TIMEOUT:
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user