mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
dual-fund: reconnections were borked, this fixes them
This commit is contained in:
parent
09b5c906fd
commit
ef9d8bcd5a
@ -384,17 +384,16 @@ void channel_errmsg(struct channel *channel,
|
||||
/* Clean up any in-progress open attempts */
|
||||
channel_cleanup_commands(channel, desc);
|
||||
|
||||
if (channel_unsaved(channel)) {
|
||||
log_info(channel->log, "%s", "Unsaved peer failed."
|
||||
" Disconnecting and deleting channel.");
|
||||
delete_channel(channel);
|
||||
return;
|
||||
}
|
||||
|
||||
/* No per_peer_state means a subd crash or disconnection. */
|
||||
if (!pps) {
|
||||
/* If the channel is unsaved, we forget it */
|
||||
if (channel_unsaved(channel)) {
|
||||
log_unusual(channel->log, "%s",
|
||||
"Unsaved peer failed."
|
||||
" Disconnecting and deleting channel.");
|
||||
delete_channel(channel);
|
||||
return;
|
||||
}
|
||||
|
||||
channel_fail_reconnect(channel, "%s: %s",
|
||||
channel->owner->name, desc);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user