Skip to content

Commit e874b07

Browse files
Merge pull request #479 from Sovereign-Engineering/florian/obs-1502-carl-obscura-didnt-repair-broken-network-connection
bugfix: ignore target state match if tunnel breaks
2 parents 55633ff + 36da810 commit e874b07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rustlib/src/tunnel_state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ impl TunnelState {
145145
let target_args = target_args_recv.borrow_and_update().clone();
146146
tracing::info!(message_id = "Azzlo6j2", ?target_args, "new target args");
147147

148-
if !tunnel_state.borrow().is_target_state(&target_args) {
149-
tracing::info!(message_id = "KT91bgvI", "not in target state");
148+
if !tunnel_state.borrow().is_target_state(&target_args) || disconnect_reason.is_some() {
149+
tracing::info!(message_id = "KT91bgvI", ?disconnect_reason, "not in target state or tunnel broke");
150150

151151
// Drop tunnel if args changed and change to connecting or disconnected as desired
152152
tunnel_state.send_modify(|tunnel_state| match &target_args {

0 commit comments

Comments
 (0)