diff --git a/lightningd/jsonrpc.c b/lightningd/jsonrpc.c index 5520fdcec..76baaa2d9 100644 --- a/lightningd/jsonrpc.c +++ b/lightningd/jsonrpc.c @@ -801,11 +801,6 @@ static struct command_result *command_exec(struct json_connection *jcon, if (res == &pending) assert(cmd->pending); - /* The command might outlive the connection. */ - if (jcon) - list_for_each(&jcon->commands, cmd, list) - assert(cmd->pending); - return res; }