diff --git a/client/main.c b/client/main.c index 7087e1f8..bb645c97 100644 --- a/client/main.c +++ b/client/main.c @@ -587,15 +587,9 @@ int eventThread(void * arg) while(state.running) { SDL_Event event; - if (!SDL_WaitEventTimeout(&event, 1000)) + if (!SDL_PollEvent(&event)) { - const char * err = SDL_GetError(); - if (err[0] != '\0') - { - DEBUG_ERROR("SDL Error: %s", err); - state.running = false; - break; - } + usleep(1000); continue; }