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

Commit

Permalink
Don't hang testjoystick if we failed to open the device in the first …
Browse files Browse the repository at this point in the history
…place.
  • Loading branch information
icculus committed Dec 11, 2012
1 parent e90b87b commit 9fb45cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/testjoystick.c
Expand Up @@ -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 {
Expand Down

0 comments on commit 9fb45cb

Please sign in to comment.