mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
server
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user