Clear the queue active flag when we shutdown, so we don't have a mutex error trying to read the queue.
authorSam Lantinga
Fri, 28 Sep 2012 03:54:39 -0700
changeset 64952bf42c5e897a
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
     1.1 --- a/src/events/SDL_events.c	Fri Sep 28 03:49:27 2012 -0700
     1.2 +++ b/src/events/SDL_events.c	Fri Sep 28 03:54:39 2012 -0700
     1.3 @@ -86,6 +86,8 @@
     1.4  {
     1.5      int i;
     1.6  
     1.7 +    SDL_EventQ.active = 0;
     1.8 +
     1.9      if (SDL_EventQ.lock) {
    1.10          SDL_DestroyMutex(SDL_EventQ.lock);
    1.11          SDL_EventQ.lock = NULL;