Skip to content

Commit ddb3eb8

Browse files
authored
Merge pull request #31 from silicon-heaven/fix-tunneling
Fix inverse contidion in open tunnel retain check
2 parents cd90ebb + 1c868d6 commit ddb3eb8

3 files changed

Lines changed: 5 additions & 11 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: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -671,15 +671,9 @@ 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.extract_if(.., |tunnel| tunnel.frame_sender.is_closed()).for_each(|tunnel| {
675+
debug!(target: "Tunnel", "Removing closed tunnel {:?}", tunnel);
676+
});
683677
}
684678
Err(e) => {
685679
error!("Get response receiver error: {e}");

0 commit comments

Comments
 (0)