closing: don't go into temporary failure because we completed negotiation.

It only lasts until the next block, but it's weird.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-04-26 14:21:01 +09:30
parent 72c459dd6c
commit 9430a455ff

View file

@ -90,6 +90,11 @@ static void peer_closing_complete(struct channel *channel, const u8 *msg)
return;
}
/* Don't report spurious failure when closingd exits. */
channel_set_owner(channel, NULL);
/* Clear any transient negotiation messages */
channel_set_billboard(channel, false, NULL);
/* Retransmission only, ignore closing. */
if (channel->state == CLOSINGD_COMPLETE)
return;