lightningd: pass disconnect flag to subd's errcb.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-10-22 14:37:32 +10:30
parent 443082ba98
commit 9abf9c2924
8 changed files with 39 additions and 39 deletions

View File

@@ -1496,9 +1496,9 @@ static unsigned int onchain_msg(struct subd *sd, const u8 *msg, const int *fds U
static void onchain_error(struct channel *channel,
struct peer_fd *pps UNUSED,
const char *desc,
bool warning UNUSED,
bool aborted UNUSED,
const u8 *err_for_them UNUSED)
const u8 *err_for_them UNUSED,
bool disconnect UNUSED,
bool warning UNUSED)
{
channel_set_owner(channel, NULL);