This can be called directly on shutdown, even with unfinished cmd */
| 512 | |
| 513 | /* This can be called directly on shutdown, even with unfinished cmd */ |
| 514 | static void destroy_command(struct command *cmd) |
| 515 | { |
| 516 | if (!cmd->jcon) { |
| 517 | log_debug(cmd->ld->log, |
| 518 | "Command returned result after jcon close"); |
| 519 | return; |
| 520 | } |
| 521 | list_del_from(&cmd->jcon->commands, &cmd->list); |
| 522 | } |
| 523 | |
| 524 | struct command_result *command_raw_complete(struct command *cmd, |
| 525 | struct json_stream *result) |
nothing calls this directly
no test coverage detected