Fiexes another bug with networking
This commit is contained in:
@@ -193,9 +193,9 @@ boost::optional<Poco::JSON::Object> OutputRequestHandler::parseLamp(const std::s
|
||||
|
||||
boost::optional<Poco::JSON::Object> OutputRequestHandler::parseSound(const std::string& item_name, const std::string& action)
|
||||
{
|
||||
Poco::JSON::Object response;
|
||||
if(item_name == "")
|
||||
{
|
||||
Poco::JSON::Object response;
|
||||
response.set("sounds", getItemArray(this->output_driver->get_sounds()) );
|
||||
return response;
|
||||
}
|
||||
@@ -218,7 +218,7 @@ boost::optional<Poco::JSON::Object> OutputRequestHandler::parseSound(const std::
|
||||
throw new Poco::NotFoundException("No action with name \"" + action + "\" on sounds!");
|
||||
}
|
||||
|
||||
return {};
|
||||
return response;
|
||||
}
|
||||
|
||||
boost::optional<Poco::JSON::Object> OutputRequestHandler::parseDisplay(const std::string& item_name, const std::string& action, const std::string& score)
|
||||
|
||||
Reference in New Issue
Block a user