Merge pull request #6551 from akallabeth/queue_fix

Reset Queue_Event when Queue_Clear is called.
This commit is contained in:
Martin Fleisz 2020-11-05 15:43:48 +01:00 committed by GitHub
commit 96bb569674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,7 @@ void Queue_Clear(wQueue* queue)
queue->size = 0;
queue->head = queue->tail = 0;
ResetEvent(queue->event);
if (queue->synchronized)
LeaveCriticalSection(&queue->lock);
}