| 2314 | } |
| 2315 | |
| 2316 | static struct io_plan *ld_write_json(struct io_conn *conn, |
| 2317 | struct plugin *plugin) |
| 2318 | { |
| 2319 | struct jstream *jstr = list_top(&plugin->js_list, struct jstream, list); |
| 2320 | if (jstr) |
| 2321 | return json_stream_output(jstr->js, plugin->stdout_conn, |
| 2322 | ld_stream_complete, plugin); |
| 2323 | |
| 2324 | /* If we were simply flushing final output, stop now. */ |
| 2325 | if (plugin->exiting) |
| 2326 | io_break(plugin); |
| 2327 | return io_out_wait(conn, plugin, ld_write_json, plugin); |
| 2328 | } |
| 2329 | |
| 2330 | static void ld_conn_finish(struct io_conn *conn, struct plugin *plugin) |
| 2331 | { |
no test coverage detected