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 81ea09c commit 6eb237dCopy full SHA for 6eb237d
async-ssh2-lite/src/session_stream/impl_tokio.rs
@@ -35,9 +35,7 @@ impl AsyncSessionStream for TcpStream {
35
}
36
37
match sess.block_directions() {
38
- BlockDirections::None => {
39
- unreachable!("")
40
- }
+ BlockDirections::None => continue,
41
BlockDirections::Inbound => {
42
assert!(expected_block_directions.is_readable());
43
@@ -77,9 +75,7 @@ impl AsyncSessionStream for TcpStream {
77
75
78
76
79
80
81
82
+ BlockDirections::None => return Poll::Pending,
83
84
85
0 commit comments