mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-03 22:01:20 -04:00
Have dummy controller shut down its background thread immediately during constructor to save resources
This commit is contained in:
@@ -34,7 +34,12 @@
|
||||
|
||||
RGBController_Dummy::RGBController_Dummy()
|
||||
{
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Dummy controller doesn't actually use its background |
|
||||
| thread, so shut it down immediately to save resources |
|
||||
\*-----------------------------------------------------*/
|
||||
Shutdown();
|
||||
AccessMutex.unlock();
|
||||
}
|
||||
|
||||
RGBController_Dummy::~RGBController_Dummy()
|
||||
|
||||
Reference in New Issue
Block a user