mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
connectd: also don't disconnect on "all-channel" warnings.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
48522f3e9e
commit
468d3fd387
1 changed files with 3 additions and 1 deletions
|
@ -1109,12 +1109,14 @@ static struct io_plan *read_body_from_peer_done(struct io_conn *peer_conn,
|
|||
status_peer_io(LOG_IO_IN, &peer->id, decrypted);
|
||||
|
||||
/* Could be a all-channel error or warning? Log it
|
||||
* more verbose, and hang up. */
|
||||
* more verbose: hang up on error. */
|
||||
if (type == WIRE_ERROR || type == WIRE_WARNING) {
|
||||
char *desc = sanitize_error(tmpctx, decrypted, NULL);
|
||||
status_peer_info(&peer->id,
|
||||
"Received %s: %s",
|
||||
peer_wire_name(type), desc);
|
||||
if (type == WIRE_WARNING)
|
||||
return read_hdr_from_peer(peer_conn, peer);
|
||||
return io_close(peer_conn);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue