CoolerMaster ARGB controller: fix crash on rescan

This commit is contained in:
morg 2023-09-26 11:12:51 +02:00 committed by Adam Honse
parent 22b8cdbe01
commit 0c6944bb8d

View file

@ -35,9 +35,12 @@ CMARGBController::CMARGBController(hid_device* dev_handle, char *_path, unsigned
}
CMARGBController::~CMARGBController()
{
if(mutex_ptr.use_count() <= 1)
{
hid_close(dev);
}
}
void CMARGBController::GetStatus()
{