Merge pull request #6556 from akallabeth/autoreconnect_fix

Fixed reset of MessageQueue in Clear
This commit is contained in:
Martin Fleisz 2020-11-06 13:13:18 +01:00 committed by GitHub
commit c5f746d71a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -297,6 +297,7 @@ int MessageQueue_Clear(wMessageQueue* queue)
queue->size--;
}
ResetEvent(queue->event);
queue->closed = FALSE;
LeaveCriticalSection(&queue->lock);