connectd: don't received useless peer fd if we're told to send final msg.

We don't need the connection to ourselves, just to free it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-01-29 14:03:05 +10:30
parent ca08f27d54
commit 727b486d49
6 changed files with 3 additions and 24 deletions

View File

@@ -1053,9 +1053,7 @@ send_error:
subd_send_msg(ld->connectd,
take(towire_connectd_peer_final_msg(NULL, &peer->id,
error)));
subd_send_fd(ld->connectd, payload->peer_fd->fd);
/* Don't close the fd! */
payload->peer_fd->fd = -1;
tal_free(payload->peer_fd);
}
static bool