diff --git a/src/controller/deviceindex/LUSDeviceIndexMappingManager.cpp b/src/controller/deviceindex/LUSDeviceIndexMappingManager.cpp index cdfaf2bc4..b36419b11 100644 --- a/src/controller/deviceindex/LUSDeviceIndexMappingManager.cpp +++ b/src/controller/deviceindex/LUSDeviceIndexMappingManager.cpp @@ -17,7 +17,8 @@ #include namespace LUS { -LUSDeviceIndexMappingManager::LUSDeviceIndexMappingManager() : mIsInitialized(false), mSDLControllerConnectionEventThreadRunning(false) { +LUSDeviceIndexMappingManager::LUSDeviceIndexMappingManager() + : mIsInitialized(false), mSDLControllerConnectionEventThreadRunning(false) { #ifdef __WIIU__ UpdateExtensionTypesFromConfig(); #else @@ -27,9 +28,9 @@ LUSDeviceIndexMappingManager::LUSDeviceIndexMappingManager() : mIsInitialized(fa } LUSDeviceIndexMappingManager::~LUSDeviceIndexMappingManager() { - #ifndef __WIIU__ +#ifndef __WIIU__ SDLControllerConnectionEventThreadExit(); - #endif +#endif } #ifdef __WIIU__ @@ -239,15 +240,14 @@ void LUSDeviceIndexMappingManager::SDLControllerConnectionEventThread() { void LUSDeviceIndexMappingManager::SDLControllerConnectionEventThreadInit() { if (!mSDLControllerConnectionEventThreadRunning) { mSDLControllerConnectionEventThreadRunning = true; - mSDLControllerConnectionEventThread = std::thread(&LUSDeviceIndexMappingManager::SDLControllerConnectionEventThread, this); + mSDLControllerConnectionEventThread = + std::thread(&LUSDeviceIndexMappingManager::SDLControllerConnectionEventThread, this); } } void LUSDeviceIndexMappingManager::SDLControllerConnectionEventThreadExit() { // Tell the thread to stop - { - mSDLControllerConnectionEventThreadRunning = false; - } + { mSDLControllerConnectionEventThreadRunning = false; } // Wait until the thread quits mSDLControllerConnectionEventThread.join();