From 9fb45cba9965641811441f805a5ac8758d50d92c Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 11 Dec 2012 11:41:06 -0500 Subject: [PATCH] Don't hang testjoystick if we failed to open the device in the first place. --- test/testjoystick.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testjoystick.c b/test/testjoystick.c index 39fd9c852..708ba5d82 100644 --- a/test/testjoystick.c +++ b/test/testjoystick.c @@ -237,6 +237,7 @@ main(int argc, char *argv[]) if (joystick == NULL) { if ( !reportederror ) { printf("Couldn't open joystick %d: %s\n", atoi(argv[1]), SDL_GetError()); + keepGoing = SDL_FALSE; reportederror = SDL_TRUE; } } else {