Don't hang testjoystick if we failed to open the device in the first place.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 11 Dec 2012 11:41:06 -0500
changeset 6732b4201930fb9f
parent 6731 572559876818
child 6733 cfef740efada
Don't hang testjoystick if we failed to open the device in the first place.
test/testjoystick.c
     1.1 --- a/test/testjoystick.c	Tue Dec 11 11:28:29 2012 -0500
     1.2 +++ b/test/testjoystick.c	Tue Dec 11 11:41:06 2012 -0500
     1.3 @@ -237,6 +237,7 @@
     1.4              if (joystick == NULL) {
     1.5                  if ( !reportederror ) {
     1.6                      printf("Couldn't open joystick %d: %s\n", atoi(argv[1]), SDL_GetError());
     1.7 +                    keepGoing = SDL_FALSE;
     1.8                      reportederror = SDL_TRUE;
     1.9                  }
    1.10              } else {