win-wasapi: Fix timeout bug
The WaitForSignal message is supposed to return return true if the handle was signaled, not if the wait timed out.
This commit is contained in:
parent
1143b1d631
commit
75bc7d3153
1 changed files with 1 additions and 1 deletions
|
|
@ -309,7 +309,7 @@ void WASAPISource::Reconnect()
|
|||
|
||||
static inline bool WaitForSignal(HANDLE handle, DWORD time)
|
||||
{
|
||||
return WaitForSingleObject(handle, time) == WAIT_TIMEOUT;
|
||||
return WaitForSingleObject(handle, time) != WAIT_TIMEOUT;
|
||||
}
|
||||
|
||||
#define RECONNECT_INTERVAL 3000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue