Skip to content

Commit

Permalink
Fixed method name to string
Browse files Browse the repository at this point in the history
Was doing a json dump, not the string itself.
  • Loading branch information
davidmoreno committed Dec 15, 2023
1 parent 59de97e commit 91c55a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/control_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ std::string control_socket_t::parse_command(const std::string &command) {
// DEBUG("Parse command {}", command);
auto js = json_t::parse(command);

auto method = nlohmann::to_string(js["method"]);
std::string method = js["method"];
try {
if (method == "list") {
auto res = std::vector<std::string>{};
Expand Down

0 comments on commit 91c55a7

Please sign in to comment.