Save sizes file when server processes segment changes
This commit is contained in:
parent
012cb5e62d
commit
1967ec9526
1 changed files with 2 additions and 0 deletions
|
|
@ -947,6 +947,7 @@ void NetworkServer::ListenThreadFunction(NetworkClientInfo * client_info)
|
||||||
memcpy(&zone, data, sizeof(int));
|
memcpy(&zone, data, sizeof(int));
|
||||||
|
|
||||||
controllers[header.pkt_dev_idx]->zones[zone].segments.clear();
|
controllers[header.pkt_dev_idx]->zones[zone].segments.clear();
|
||||||
|
profile_manager->SaveProfile("sizes", true);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -961,6 +962,7 @@ void NetworkServer::ListenThreadFunction(NetworkClientInfo * client_info)
|
||||||
if(header.pkt_dev_idx < controllers.size())
|
if(header.pkt_dev_idx < controllers.size())
|
||||||
{
|
{
|
||||||
controllers[header.pkt_dev_idx]->SetSegmentDescription((unsigned char *)data);
|
controllers[header.pkt_dev_idx]->SetSegmentDescription((unsigned char *)data);
|
||||||
|
profile_manager->SaveProfile("sizes", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue