This commit is contained in:
Kovid Goyal 2020-11-19 21:02:36 +05:30
parent fbb259b86b
commit e7fe6142ba
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -387,7 +387,7 @@ Voice_wait_for_event(Voice *self, PyObject *args) {
const HANDLE handles[2] = {self->shutdown_events_thread, self->events_available}; const HANDLE handles[2] = {self->shutdown_events_thread, self->events_available};
DWORD ev; DWORD ev;
Py_BEGIN_ALLOW_THREADS; Py_BEGIN_ALLOW_THREADS;
ev = WaitForMultipleObjects(2, handles, true, INFINITE); ev = WaitForMultipleObjects(2, handles, false, INFINITE);
Py_END_ALLOW_THREADS; Py_END_ALLOW_THREADS;
switch (ev) { switch (ev) {
case WAIT_OBJECT_0: case WAIT_OBJECT_0: