diff --git a/Controllers/HyperXMicrophoneController/HyperXMicrophoneController.cpp b/Controllers/HyperXMicrophoneController/HyperXMicrophoneController.cpp index 6d2e24b3..41de8ee0 100644 --- a/Controllers/HyperXMicrophoneController/HyperXMicrophoneController.cpp +++ b/Controllers/HyperXMicrophoneController/HyperXMicrophoneController.cpp @@ -34,10 +34,14 @@ HyperXMicrophoneController::HyperXMicrophoneController(hidapi_wrapper hid_wrappe HyperXMicrophoneController::~HyperXMicrophoneController() { + lock.lock(); + if(dev) { wrapper.hid_close(dev); } + + lock.unlock(); } std::string HyperXMicrophoneController::GetDeviceLocation()