MCPcopy Create free account
hub / github.com/ElementsProject/lightning / destroy_command

Function destroy_command

lightningd/jsonrpc.c:514–522  ·  view source on GitHub ↗

This can be called directly on shutdown, even with unfinished cmd */

Source from the content-addressed store, hash-verified

512
513/* This can be called directly on shutdown, even with unfinished cmd */
514static 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
524struct command_result *command_raw_complete(struct command *cmd,
525 struct json_stream *result)

Callers

nothing calls this directly

Calls 1

list_del_fromFunction · 0.85

Tested by

no test coverage detected