Move RGBController base destructor functionality into RGBController::Shutdown() so that update thread can be stopped before deleting the controller. Shutdown() must be called in every RGBController implementation before deleting the controller. Also some fixes to the NetworkServer to avoid deadlocking and disconnect issues

This commit is contained in:
Adam Honse
2026-02-02 17:10:37 -06:00
parent 5176f7ff7d
commit 3b0c85592e
331 changed files with 790 additions and 37 deletions

View File

@@ -344,6 +344,8 @@ RGBController_Mountain60Keyboard::RGBController_Mountain60Keyboard(Mountain60Key
RGBController_Mountain60Keyboard::~RGBController_Mountain60Keyboard()
{
Shutdown();
mountain_thread_running = false;
mountain_thread->join();
delete mountain_thread;

View File

@@ -688,6 +688,8 @@ RGBController_MountainKeyboard::RGBController_MountainKeyboard(MountainKeyboardC
RGBController_MountainKeyboard::~RGBController_MountainKeyboard()
{
Shutdown();
delete controller;
}