b simulator + websocket

simulator changed_UI_items returning null instead of {}
cleanup of process broadcast discard on empty update
This commit is contained in:
2024-08-23 13:50:34 +02:00
parent 6185786f61
commit 368c5b04b3
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -85,11 +85,11 @@ json Simulators::changed_UI_items()
{
if (this->m_simulators.empty())
{
return json();
return "{}"_json;
}
if (this->m_current_simulator.empty())
{
return json();
return "{}"_json;
}
json after = this->m_simulators.at(m_current_simulator)->get_UI_items();