Ensures that the message parser returns a default "{}" response after handling an event, preventing unintended empty responses.
Also, this change avoids sending empty messages to the client unnecessarily.
This commit is contained in:
2026-02-14 14:32:33 +01:00
parent c8ea8185b4
commit fbf8f53090
2 changed files with 2 additions and 6 deletions
+1 -5
View File
@@ -13,12 +13,8 @@ QString Simulators::message_parser(QString message)
else if (j.contains("event"))
{
event_handler(j["event"]);
return "";
}
else
{
return "";
}
return "{}";
}
json Simulators::command_parser(json command)