Rework list handling in ResourceManager by having NetworkClient own its own list rather than sharing ResourceManager's list

This commit is contained in:
Adam Honse committed 2026-07-07 01:35:34 -05:00
1 parent fe4ca34528
commit 92f397544b
7 files changed
+85 -151

No files matched your search

+5 -2
View File
@@ -1388,8 +1388,6 @@ void DetectionManager::ProcessCleanup()
{
WaitForDetection();
SignalUpdate(DETECTIONMANAGER_UPDATE_REASON_RGBCONTROLLER_LIST_CLEARED);
/*-----------------------------------------------------*\
| Make a copy of the list so that the controllers can |
| be deleted after the list is cleared |
@@ -1401,6 +1399,11 @@ void DetectionManager::ProcessCleanup()
\*-----------------------------------------------------*/
rgb_controllers.clear();
/*-----------------------------------------------------*\
| Signal the list cleared callback |
\*-----------------------------------------------------*/
SignalUpdate(DETECTIONMANAGER_UPDATE_REASON_RGBCONTROLLER_LIST_CLEARED);
/*-----------------------------------------------------*\
| Delete the controllers |
\*-----------------------------------------------------*/