| 399 | } |
| 400 | |
| 401 | static void custommsg_final(struct custommsg_payload *payload STEALS) |
| 402 | { |
| 403 | /* Note: on shutdown, ld->connectd can be NULL! */ |
| 404 | if (payload->ld->connectd) { |
| 405 | subd_send_msg(payload->ld->connectd, |
| 406 | take(towire_connectd_custommsg_in_complete(NULL, &payload->peer_id))); |
| 407 | } |
| 408 | tal_steal(tmpctx, payload); |
| 409 | } |
| 410 | |
| 411 | static void custommsg_payload_serialize(struct custommsg_payload *payload, |
| 412 | struct json_stream *stream, |
nothing calls this directly
no test coverage detected