clear onchaind subd in channel on error

When the subdaemon closes unexpectedly, clear the reference and
update the channel billboard with the description
This commit is contained in:
John Barboza
2018-03-03 13:59:07 -05:00
committed by Christian Decker
parent 9b3e8f0bd3
commit 31b9b6bc1c

View File

@@ -330,6 +330,8 @@ static void onchain_error(struct channel *channel,
{
/* FIXME: re-launch? */
log_broken(channel->log, "%s", desc);
channel_set_billboard(channel, true, desc);
channel_set_owner(channel, NULL);
}
/* With a reorg, this can get called multiple times; each time we'll kill