Clear the queue active flag when we shutdown, so we don't have a mutex error trying to read the queue.
authorSam Lantinga <slouken@libsdl.org>
Fri, 28 Sep 2012 03:54:39 -0700
changeset 6495 2bf42c5e897a
parent 6494 309599be5c2a
child 6496 d7cb947898d7
Clear the queue active flag when we shutdown, so we don't have a mutex error trying to read the queue.
src/events/SDL_events.c
--- a/src/events/SDL_events.c	Fri Sep 28 03:49:27 2012 -0700
+++ b/src/events/SDL_events.c	Fri Sep 28 03:54:39 2012 -0700
@@ -86,6 +86,8 @@
 {
     int i;
 
+    SDL_EventQ.active = 0;
+
     if (SDL_EventQ.lock) {
         SDL_DestroyMutex(SDL_EventQ.lock);
         SDL_EventQ.lock = NULL;