From 63a342c4dc7397640611ed382a7e33efcb5d7080 Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Wed, 19 Jul 2017 17:58:40 -0400 Subject: [PATCH] Don't close joysticks --- src/Joystick/JoystickSDL.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Joystick/JoystickSDL.cc b/src/Joystick/JoystickSDL.cc index 915d4c47f..9e96eebfe 100644 --- a/src/Joystick/JoystickSDL.cc +++ b/src/Joystick/JoystickSDL.cc @@ -145,7 +145,10 @@ void JoystickSDL::_close(void) { if (SDL_JoystickInstanceID(sdlJoystick) != -1) { qCDebug(JoystickLog) << "\tID:" << SDL_JoystickInstanceID(sdlJoystick); - SDL_JoystickClose(sdlJoystick); + // This segfaults so often, and I've spent so much time trying to find the cause and fix it + // I think this might be an SDL bug + // We are much more stable just commenting this out + //SDL_JoystickClose(sdlJoystick); } } -- 2.22.0