Save sizes file when server processes segment changes

This commit is contained in:
Adam Honse
2024-11-09 16:34:19 -06:00
parent 012cb5e62d
commit 1967ec9526

View File

@@ -947,6 +947,7 @@ void NetworkServer::ListenThreadFunction(NetworkClientInfo * client_info)
memcpy(&zone, data, sizeof(int));
controllers[header.pkt_dev_idx]->zones[zone].segments.clear();
profile_manager->SaveProfile("sizes", true);
}
break;
@@ -961,6 +962,7 @@ void NetworkServer::ListenThreadFunction(NetworkClientInfo * client_info)
if(header.pkt_dev_idx < controllers.size())
{
controllers[header.pkt_dev_idx]->SetSegmentDescription((unsigned char *)data);
profile_manager->SaveProfile("sizes", true);
}
}
}