Skip to content

Commit

Permalink
Don't warn if anyone peeps for events after quitting the event subsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken authored and ericlewis committed Mar 18, 2022
1 parent c017c01 commit 71fefe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/SDL_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ SDL_PeepEventsInternal(SDL_Event * events, int numevents, SDL_eventaction action
/* Don't look after we've quit */
if (!SDL_AtomicGet(&SDL_EventQ.active)) {
/* We get a few spurious events at shutdown, so don't warn then */
if (action != SDL_ADDEVENT) {
if (action == SDL_GETEVENT) {
SDL_SetError("The event system has been shut down");
}
return (-1);
Expand Down

0 comments on commit 71fefe4

Please sign in to comment.