mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 23:54:22 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user