mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-23 23:37:48 -05:00
Fix mac os crash on rescan
This commit is contained in:
@@ -796,6 +796,13 @@ void ResourceManager::DetectDevices()
|
||||
|
||||
UpdateDeviceList();
|
||||
|
||||
/*-------------------------------------------------*\
|
||||
| Initialize HID interface for detection |
|
||||
\*-------------------------------------------------*/
|
||||
int hid_status = hid_init();
|
||||
|
||||
LOG_INFO("Initializing HID interfaces: %s", ((hid_status == 0) ? "Success" : "Failed"));
|
||||
|
||||
/*-------------------------------------------------*\
|
||||
| Start the device detection thread |
|
||||
\*-------------------------------------------------*/
|
||||
@@ -863,13 +870,6 @@ void ResourceManager::DetectDevicesThreadFunction()
|
||||
\*-------------------------------------------------*/
|
||||
detector_settings = settings_manager->GetSettings("Detectors");
|
||||
|
||||
/*-------------------------------------------------*\
|
||||
| Initialize HID interface for detection |
|
||||
\*-------------------------------------------------*/
|
||||
int hid_status = hid_init();
|
||||
|
||||
LOG_INFO("Initializing HID interfaces: %s", ((hid_status == 0) ? "Success" : "Failed"));
|
||||
|
||||
/*-------------------------------------------------*\
|
||||
| Check HID safe mode setting |
|
||||
\*-------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user