| 467 | } |
| 468 | |
| 469 | static void forget_channel(struct channel *channel, const char *why) |
| 470 | { |
| 471 | channel->error = towire_errorfmt(channel, &channel->cid, "%s", why); |
| 472 | |
| 473 | /* If the peer is connected, we let them know. Otherwise |
| 474 | * we just directly remove the channel */ |
| 475 | if (channel->owner) |
| 476 | subd_send_msg(channel->owner, |
| 477 | take(towire_channeld_send_error(NULL, why))); |
| 478 | else |
| 479 | forget(channel); |
| 480 | } |
| 481 | |
| 482 | #if EXPERIMENTAL_FEATURES |
| 483 | static void handle_channel_upgrade(struct channel *channel, |
no test coverage detected