Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Clear the queue active flag when we shutdown, so we don't have a mute…
Browse files Browse the repository at this point in the history
…x error trying to read the queue.
  • Loading branch information
slouken committed Sep 28, 2012
1 parent 7dd4f1a commit 827b48c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/events/SDL_events.c
Expand Up @@ -86,6 +86,8 @@ SDL_StopEventLoop(void)
{
int i;

SDL_EventQ.active = 0;

if (SDL_EventQ.lock) {
SDL_DestroyMutex(SDL_EventQ.lock);
SDL_EventQ.lock = NULL;
Expand Down

0 comments on commit 827b48c

Please sign in to comment.