| 1442 | } |
| 1443 | |
| 1444 | static void forget_channel(struct channel *channel, const char *why) |
| 1445 | { |
| 1446 | channel->error = towire_errorfmt(channel, &channel->cid, "%s", why); |
| 1447 | |
| 1448 | /* If the peer is connected, we let them know. Otherwise |
| 1449 | * we just directly remove the channel */ |
| 1450 | if (channel->owner) |
| 1451 | subd_send_msg(channel->owner, |
| 1452 | take(towire_channeld_send_error(NULL, why))); |
| 1453 | else |
| 1454 | forget(channel); |
| 1455 | } |
| 1456 | |
| 1457 | static void handle_channel_upgrade(struct channel *channel, |
| 1458 | const u8 *msg) |
no test coverage detected