We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a07e71 commit 36da810Copy full SHA for 36da810
rustlib/src/tunnel_state.rs
@@ -134,8 +134,8 @@ impl TunnelState {
134
let target_args = target_args_recv.borrow_and_update().clone();
135
tracing::info!(message_id = "Azzlo6j2", ?target_args, "new target args");
136
137
- if !tunnel_state.borrow().is_target_state(&target_args) {
138
- tracing::info!(message_id = "KT91bgvI", "not in target state");
+ if !tunnel_state.borrow().is_target_state(&target_args) || disconnect_reason.is_some() {
+ tracing::info!(message_id = "KT91bgvI", ?disconnect_reason, "not in target state or tunnel broke");
139
140
// Drop tunnel if args changed and change to connecting or disconnected as desired
141
tunnel_state.send_modify(|tunnel_state| match &target_args {
0 commit comments