| 947 | } |
| 948 | |
| 949 | static void channel_err(struct channel *channel, const char *why) |
| 950 | { |
| 951 | log_info(channel->log, "Peer transient failure in %s: %s", |
| 952 | channel_state_name(channel), why); |
| 953 | |
| 954 | #if DEVELOPER |
| 955 | if (dev_disconnect_permanent(channel->peer->ld)) { |
| 956 | channel_fail_permanent(channel, |
| 957 | REASON_LOCAL, |
| 958 | "dev_disconnect permfail"); |
| 959 | return; |
| 960 | } |
| 961 | #endif |
| 962 | channel_set_owner(channel, NULL); |
| 963 | } |
| 964 | |
| 965 | void channel_fail_transient_delayreconnect(struct channel *channel, const char *fmt, ...) |
| 966 | { |
no test coverage detected