Skip to content

Commit f618dc6

Browse files
committed
Fix inverse contidion in open tunnel retain check
1 parent cd90ebb commit f618dc6

3 files changed

Lines changed: 11 additions & 12 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "shvcall"
33
description = "CLI utility to invoke remote SHV RPC calls"
44
license = "MIT"
55
repository = "https://github.com/silicon-heaven/shvcall-rs"
6-
version = "3.9.11"
6+
version = "3.9.12"
77
edition = "2024"
88

99
[[bin]]

src/lib.rs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -671,18 +671,17 @@ async fn start_tunnel_server(
671671
break;
672672
}
673673
}
674-
tunnels.retain(|tunnel| tunnel.frame_sender.is_closed());
675-
// {
676-
// if tunnel.frame_sender.is_closed() {
677-
// debug!(target: "Tunnel", "Removing closed tunnel state {:?}", tunnel);
678-
// false
679-
// } else {
680-
// true
681-
// }
682-
// });
674+
tunnels.retain(|tunnel| {
675+
if tunnel.frame_sender.is_closed() {
676+
debug!(target: "Tunnel", "Removing closed tunnel state {:?}", tunnel);
677+
false
678+
} else {
679+
true
680+
}
681+
});
683682
}
684683
Err(e) => {
685-
error!("Get response receiver error: {e}");
684+
error!("Get response receiver error1: {e}");
686685
break;
687686
}
688687
}

0 commit comments

Comments
 (0)