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.
2 parents 55633ff + 36da810 commit e874b07Copy full SHA for e874b07
rustlib/src/tunnel_state.rs
@@ -145,8 +145,8 @@ impl TunnelState {
145
let target_args = target_args_recv.borrow_and_update().clone();
146
tracing::info!(message_id = "Azzlo6j2", ?target_args, "new target args");
147
148
- if !tunnel_state.borrow().is_target_state(&target_args) {
149
- 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");
150
151
// Drop tunnel if args changed and change to connecting or disconnected as desired
152
tunnel_state.send_modify(|tunnel_state| match &target_args {
0 commit comments